waybill_task.go 504 B

1234567891011121314151617181920212223
  1. package router
  2. import (
  3. "cold-delivery/app/admin/controller"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func init() {
  7. routerNoCheckRole = append(routerNoCheckRole, registerWaybillTaskRouter)
  8. }
  9. // 物流详情
  10. // 需认证的路由代码
  11. func registerWaybillTaskRouter(v1 *gin.RouterGroup) {
  12. cont := controller.WaybillTaskController{}
  13. r := v1.Group("/waybill-task")
  14. {
  15. r.GET("", cont.GetPage)
  16. r.POST("/data", cont.GetData)
  17. r.GET("/locus", cont.GetLocus)
  18. r.POST("/newest-locus", cont.GetNewestData)
  19. }
  20. }