package route import ( "kpt-pasture/http/handler/goods" "github.com/gin-gonic/gin" ) func GoodsManageAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) { return func(s *gin.Engine) { for _, opt := range opts { opt(s) } // goods API 组 物品管理 goodsRoute := authRouteGroup(s, "/api/v1/goods/") goodsRoute.POST("/drugs/list", goods.DrugsList) goodsRoute.POST("/drugs/createOrUpdate", goods.DrugsCreateOrUpdate) goodsRoute.POST("/medical/equipment/list", goods.MedicalEquipmentList) goodsRoute.POST("/medical/equipment/createOrUpdate", goods.MedicalEquipmentCreateOrUpdate) goodsRoute.POST("/neck/ring/list", goods.NeckRingList) goodsRoute.POST("/neck/ring/createOrUpdate", goods.NeckRingCreateOrUpdate) goodsRoute.POST("/outbound/apply", goods.OutboundApply) goodsRoute.POST("/outbound/list", goods.OutboundList) goodsRoute.POST("/outbound/audit", goods.OutboundAudit) goodsRoute.POST("/outbound/cancel", goods.OutboundAudit) goodsRoute.POST("/outbound/detail", goods.OutboundDetail) } }