liujiandao
2023-11-16 d20acf38c36c11ee4428c3e74a17f5870dc61b51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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列表
    }
}