accountType.go 987 B

12345678910111213141516171819202122
  1. package typeManage
  2. import (
  3. "github.com/gin-gonic/gin"
  4. v1 "log-server/api/v1"
  5. )
  6. type AccountTypeRouter struct {
  7. }
  8. func (a *AccountTypeRouter) InitAccountTypeRouter(Router *gin.RouterGroup) {
  9. accountTypeRouter := Router.Group("accountType")
  10. accountTypeApi := v1.ApiGroupApp.TypeApiGroup.AccountTypeApi
  11. {
  12. accountTypeRouter.POST("createAccountType",accountTypeApi.CreateAccountType) // 增加账号类型
  13. accountTypeRouter.POST("deleteAccountType",accountTypeApi.DeleteAccountType) // 删除单个账号类型
  14. accountTypeRouter.DELETE("deleteAccountTypesByIds", accountTypeApi.DeleteAccountTypesByIds) //批量删除
  15. accountTypeRouter.POST("updateAccountType",accountTypeApi.UpdateAccountType) // 更改账号类型
  16. accountTypeRouter.POST("getAccountTypeById", accountTypeApi.GetAccountTypeById) //获取单条账号类型
  17. accountTypeRouter.POST("getAccountTypeList",accountTypeApi.AccountTypeList) // 查询所有账号类型
  18. }
  19. }