api.go 427 B

1234567891011121314151617181920212223
  1. package public
  2. import (
  3. "github.com/gin-gonic/gin"
  4. )
  5. func Register(r *gin.RouterGroup) {
  6. api := NewApi()
  7. // 不登录
  8. public := r.Group("/public")
  9. public.POST("/queryOrder", api.queryExpressOrder)
  10. public.POST("/logisticDetail", api.logisticDetail)
  11. public.POST("/deviceSensorList", api.deviceSensorList)
  12. public.POST("/sensorDataList", api.snDataList)
  13. return
  14. }
  15. type Api struct{}
  16. func NewApi() Api {
  17. return Api{}
  18. }