This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package store
import (
"github.com/gin-gonic/gin"
"recook/internal/api/store/bus"
)
/*
初始化工作:
1、配置门店账号,预先设置顶级用户,用于分享邀请
2、预生成50万个邀请码
3、配置类目表
4、配置地区表
*/
func SetupRouter(v1 *gin.RouterGroup) {
v1StoreR := v1.Group("store")
v1StoreR.Use(authorize())
{
v1StoreR.POST("/user/login", bus.Login)
v1StoreR.POST("/order/list", bus.QueryOrderList)
v1StoreR.POST("/order/cate/count", bus.QueryOrderCateCount)
v1StoreR.POST("/order/express/confirm", bus.UpdateConfirmOrder)
v1StoreR.POST("/order/detail", bus.QueryOrderDetail)
v1StoreR.POST("/vend/list", bus.QueryVendList)
}