|
@@ -14,21 +14,24 @@ import (
|
|
|
|
|
|
func InitRoute(r *gin.Engine) {
|
|
func InitRoute(r *gin.Engine) {
|
|
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
|
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
|
- r.POST("/register", handler.WrapRegisterHandler) // 商家主账号注册
|
|
|
|
- r.POST("/addNewSubAccount", handler.WrapAddNewSubAccountHandler) // 商家子账号注册
|
|
|
|
- r.POST("/addNewJob", handler.WrapaddNewJobHandler) // 商家新增岗位
|
|
|
|
- r.POST("/updateJob", handler.WrapupdateJobHandler) // 商家修改岗位
|
|
|
|
- r.POST("/deleteJob", handler.WrapdeleteJobHandler) // 商家删除岗位
|
|
|
|
- r.POST("/sendCode", handler.WrapSendCodeHandler) // 发送登录验证码
|
|
|
|
- r.POST("/login", handler.WrapCodeLoginHandler) // 商家登录
|
|
|
|
- r.GET("/test/ping", func(c *gin.Context) {
|
|
|
|
- resp := http_model.CommonResponse{
|
|
|
|
- Status: 0,
|
|
|
|
- Message: "",
|
|
|
|
- Data: "ping",
|
|
|
|
- }
|
|
|
|
- c.JSON(200, resp)
|
|
|
|
- })
|
|
|
|
|
|
+ business := r.Group("/youngee")
|
|
|
|
+ {
|
|
|
|
+ business.POST("/register", handler.WrapRegisterHandler) // 商家主账号注册
|
|
|
|
+ business.POST("/addNewSubAccount", handler.WrapAddNewSubAccountHandler) // 商家子账号注册
|
|
|
|
+ business.POST("/addNewJob", handler.WrapaddNewJobHandler) // 商家新增岗位
|
|
|
|
+ business.POST("/updateJob", handler.WrapupdateJobHandler) // 商家修改岗位
|
|
|
|
+ business.POST("/deleteJob", handler.WrapdeleteJobHandler) // 商家删除岗位
|
|
|
|
+ business.POST("/sendCode", handler.WrapSendCodeHandler) // 发送登录验证码
|
|
|
|
+ business.POST("/login", handler.WrapCodeLoginHandler) // 商家登录
|
|
|
|
+ business.GET("/test/ping", func(c *gin.Context) {
|
|
|
|
+ resp := http_model.CommonResponse{
|
|
|
|
+ Status: 0,
|
|
|
|
+ Message: "",
|
|
|
|
+ Data: "ping",
|
|
|
|
+ }
|
|
|
|
+ c.JSON(200, resp)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
//r.Any("/testDemo", func(c *gin.Context) {
|
|
//r.Any("/testDemo", func(c *gin.Context) {
|
|
// resp := http_model.CommonResponse{
|
|
// resp := http_model.CommonResponse{
|
|
// Status: 0,
|
|
// Status: 0,
|
|
@@ -165,7 +168,7 @@ func InitRoute(r *gin.Engine) {
|
|
}
|
|
}
|
|
|
|
|
|
// 选品广场相关接口
|
|
// 选品广场相关接口
|
|
- s := r.Group("/youngee/s")
|
|
|
|
|
|
+ s := r.Group("/youngee/b")
|
|
{
|
|
{
|
|
s.Use(middleware.LoginAuthMiddleware)
|
|
s.Use(middleware.LoginAuthMiddleware)
|
|
s.POST("/selection/delete", handler.WrapDeleteSelectionHandler) // 删除选品
|
|
s.POST("/selection/delete", handler.WrapDeleteSelectionHandler) // 删除选品
|