新增平台商品
This commit is contained in:
@@ -651,4 +651,37 @@ func privateRouter(r *gin.Engine, api controller.Api) {
|
||||
prescriptionGroup.POST("", api.Export.OrderPrescription)
|
||||
}
|
||||
}
|
||||
|
||||
// 商品管理
|
||||
productGroup := adminGroup.Group("/product")
|
||||
{
|
||||
// 平台商品
|
||||
platformGroup := productGroup.Group("/platform")
|
||||
{
|
||||
// 获取平台商品列表-分页
|
||||
platformGroup.GET("", api.Product.GetPlatformProductPage)
|
||||
|
||||
// 平台商品详情
|
||||
platformGroup.GET("/:product_platform_id", api.Product.GetPlatformProduct)
|
||||
}
|
||||
|
||||
// 系统商品
|
||||
systemGroup := productGroup.Group("/system")
|
||||
{
|
||||
// 获取系统商品列表-分页
|
||||
systemGroup.GET("", api.Product.GetSystemProductPage)
|
||||
|
||||
// 系统商品详情
|
||||
systemGroup.GET("/:product_id", api.OrderProduct.GetOrderProduct)
|
||||
|
||||
// 新增系统商品
|
||||
systemGroup.POST("", api.Dept.AddDept)
|
||||
|
||||
// 删除系统商品
|
||||
systemGroup.DELETE("", api.Dept.DeleteDept)
|
||||
|
||||
// 修改系统商品
|
||||
systemGroup.PUT("/:product_id", api.Dept.PutDept)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user