goods_api.go 1.0 KB

12345678910111213141516171819202122232425262728
  1. package route
  2. import (
  3. "kpt-pasture/http/handler/goods"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func GoodsManageAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) {
  7. return func(s *gin.Engine) {
  8. for _, opt := range opts {
  9. opt(s)
  10. }
  11. // goods API 组 物品管理
  12. goodsRoute := authRouteGroup(s, "/api/v1/goods/")
  13. goodsRoute.POST("/drugs/list", goods.DrugsList)
  14. goodsRoute.POST("/drugs/createOrUpdate", goods.DrugsCreateOrUpdate)
  15. goodsRoute.POST("/medical/equipment/list", goods.MedicalEquipmentList)
  16. goodsRoute.POST("/medical/equipment/createOrUpdate", goods.MedicalEquipmentCreateOrUpdate)
  17. goodsRoute.POST("/neck/ring/list", goods.NeckRingList)
  18. goodsRoute.POST("/neck/ring/createOrUpdate", goods.NeckRingCreateOrUpdate)
  19. goodsRoute.POST("/outbound/apply", goods.OutboundApply)
  20. goodsRoute.POST("/outbound/list", goods.OutboundList)
  21. goodsRoute.POST("/outbound/audit", goods.OutboundAudit)
  22. goodsRoute.POST("/outbound/cancel", goods.OutboundAudit)
  23. goodsRoute.POST("/outbound/detail", goods.OutboundDetail)
  24. }
  25. }