package test import ( "github.com/gin-gonic/gin" "srm/api/v1" ) type SupplierTypeRouter struct { } // InitSupplierTypeRouter 初始化 SupplierType 路由信息 func (s *SupplierTypeRouter) InitSupplierTypeRouter(Router *gin.RouterGroup) { stRouter := Router.Group("st") stRouterWithoutRecord := Router.Group("st") var stApi = v1.ApiGroupApp.TestApiGroup.SupplierTypeApi { stRouter.POST("createSupplierType", stApi.CreateSupplierType) // 新建SupplierType stRouter.DELETE("deleteSupplierType", stApi.DeleteSupplierType) // 删除SupplierType stRouter.DELETE("deleteSupplierTypeByIds", stApi.DeleteSupplierTypeByIds) // 批量删除SupplierType stRouter.PUT("updateSupplierType", stApi.UpdateSupplierType) // 更新SupplierType } { stRouterWithoutRecord.GET("findSupplierType", stApi.FindSupplierType) // 根据ID获取SupplierType stRouterWithoutRecord.GET("getSupplierTypeList", stApi.GetSupplierTypeList) // 获取SupplierType列表 } }