yuliang1112 1 anno fa
parent
commit
5a04027db2
2 ha cambiato i file con 3 aggiunte e 8 eliminazioni
  1. 1 1
      handler/getAllProduct.go
  2. 2 7
      route/init.go

+ 1 - 1
handler/getAllProduct.go

@@ -12,7 +12,7 @@ import (
 	"youngee_b_api/util"
 )
 
-func WrapGetAllProductHandler(ctx *gin.Context) {
+func WrapGetAllProjectHandler(ctx *gin.Context) {
 	handler := newGetAllProductHandler(ctx)
 	baseRun(handler)
 }

+ 2 - 7
route/init.go

@@ -132,6 +132,8 @@ func InitRoute(r *gin.Engine) {
 		m.POST("/project/recruit/getservicecharge", handler.WrapGetServiceChargeHandler)         // 获取产品置换服务费
 		m.POST("/product/deletePhotoUrl", handler.WrapDeletePhotoUrlHandler)                     // 在数据库中删除图片url
 		m.POST("/qrcode/getwxqrcode", handler.WrapGetWxQRCodeHandler)                            // 获取微信二维码
+
+		m.POST("/project/getAllProduct", handler.WrapGetAllProjectHandler) // 查询项目广场项目列表
 	}
 
 	// 选品广场相关接口
@@ -152,11 +154,4 @@ func InitRoute(r *gin.Engine) {
 		s.POST("/selection/task/settle", handler.WrapSettleSecTaskHandler)                    // 结算
 		s.POST("/selection/getAllSelection", handler.WrapGetAllSelectionHandler)              // 查询选品广场选品列表
 	}
-
-	// 选品广场相关接口
-	p := r.Group("/youngee/p")
-	{
-		p.Use(middleware.LoginAuthMiddleware)
-		p.POST("/product/getAllProduct", handler.WrapGetAllProductHandler) // 查询项目广场项目列表
-	}
 }