work_order.go 741 B

1234567891011121314151617181920212223242526
  1. package route
  2. import (
  3. "kpt-pasture/http/handler/work"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func WorkOrderAPI(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. // work API 组 工作清单
  12. workRoute := authRouteGroup(s, "/api/v1/work/")
  13. workRoute.POST("/order/list", work.OrderList)
  14. workRoute.POST("/order/createOrUpdate", work.OrderCreateOrUpdate)
  15. workRoute.PUT("/order/is_show/:id", work.OrderIsShow)
  16. workRoute.GET("/user/order/list/:status", work.UserOrderList)
  17. workRoute.POST("/calendar/list", work.CalendarList)
  18. workRoute.POST("/calendar/detail", work.CalendarTableDetail)
  19. workRoute.POST("/calendar/todo/list", work.CalendarToDoList)
  20. }
  21. }