You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
719 B
28 lines
719 B
package vend
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"recook/internal/api/vend/order"
|
|
"recook/internal/api/vend/user"
|
|
)
|
|
|
|
func SetupRouter(v1 *gin.RouterGroup) {
|
|
shipperR := v1.Group("vend")
|
|
|
|
shipperR.Use(authorize())
|
|
{
|
|
userR := shipperR.Group("user")
|
|
{
|
|
userR.POST("/login", user.Login)
|
|
}
|
|
expressR := shipperR.Group("express")
|
|
{
|
|
expressR.POST("/order/no_ship/list", order.QueryNoShipOrderList)
|
|
expressR.POST("/order/excel/update", order.UpdateOrderWithExcel)
|
|
expressR.POST("/order/excel/no_ship/list/download", order.DownloadExcelOfNoShipOrder)
|
|
expressR.POST("/order/invalid/list", order.QueryInvalidOrder)
|
|
expressR.POST("/company/list/support", order.QuerySupportExpressCompany)
|
|
}
|
|
}
|
|
}
|