Browse Source

resp_code_data

Xingyu Xian 4 days ago
parent
commit
cc83d1be2c

+ 1 - 1
handler/full_local_life_list.go

@@ -41,7 +41,7 @@ func (h *FullListHandler) getResponse() interface{} {
 func (h *FullListHandler) run() {
 	// enterpriseID := middleware.GetSessionAuth(h.ctx).EnterpriseID
 	condition := pack.HttpFullLocalLifeListRequestToCondition(h.req)
-	data, err := service.LocalLife.GetFullLocalLifeList(h.ctx, h.req.PageSize, h.req.PageNum, h.req.SupplierId, condition)
+	data, err := service.LocalLife.GetFullLocalLifeList(h.ctx, h.req.PageSize, h.req.PageNum-1, h.req.SupplierId, condition)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[FullListHandler] error GetFullProjectList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)

+ 5 - 1
handler/full_s_local_list.go

@@ -41,13 +41,17 @@ func (h *FullSLocalListHandler) getResponse() interface{} {
 func (h *FullSLocalListHandler) run() {
 	// enterpriseID := middleware.GetSessionAuth(h.ctx).EnterpriseID
 	condition := pack.HttpFullSLocalLifeListRequestToCondition(h.req)
-	data, err := service.SLocalLife.GetFullSLocalLifeList(h.ctx, h.req.PageSize, h.req.PageNum, h.req.SupplierId, condition)
+	data, err := service.SLocalLife.GetFullSLocalLifeList(h.ctx, h.req.PageSize, h.req.PageNum-1, h.req.SupplierId, condition)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[FullListHandler] error GetFullProjectList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	h.resp.Data = data
+	h.resp.Message = "ok"
+	h.resp.Status = 20000
 }
 func (h *FullSLocalListHandler) checkParam() error {
 	return nil

+ 1 - 0
handler/local_change_supplier_status.go

@@ -65,6 +65,7 @@ func (p *LocalChangeTaskStatusHandler) run() {
 		}
 	}
 	p.resp.Message = "任务状态更换成功"
+	p.resp.Status = 20000
 }
 
 func (p *LocalChangeTaskStatusHandler) checkParam() error {

+ 2 - 0
handler/local_special_add_strategy.go

@@ -43,8 +43,10 @@ func (p *LocalSpecialAddStrategyHandler) run() {
 	err := service.SLocalLife.CreateSpecialStrategy(p.ctx, p.req)
 	if err != nil {
 		p.resp.Message = err.Error()
+		p.resp.Status = 40000
 	}
 	p.resp.Message = "成功添加招募策略"
+	p.resp.Status = 20000
 }
 
 func (p *LocalSpecialAddStrategyHandler) checkParam() error {

+ 2 - 0
handler/local_strategy.go

@@ -38,9 +38,11 @@ func (h *LocalStrategyHandler) run() {
 	recruitStrategys, err := service.Project.GetProjectStrategys(h.ctx, h.req.LocalId)
 	if err != nil {
 		h.resp.Message = err.Error()
+		h.resp.Status = 40000
 	}
 	h.resp.Message = "成功查询招募策略"
 	h.resp.Data = recruitStrategys
+	h.resp.Status = 20000
 }
 func (h *LocalStrategyHandler) checkParam() error {
 	return nil

+ 2 - 1
handler/local_task_count.go

@@ -48,12 +48,13 @@ func (p *LocalTaskCountHandler) run() {
 		logrus.Errorf("[ChangeTaskStatusHandler] call Create err:%+v\n", err)
 		util.HandlerPackErrorResp(p.resp, consts.ErrorInternal, "")
 		logrus.Info("ChangeTaskStatus fail,req:%+v", p.req)
-		p.resp.Message = "状态变更失败"
+		p.resp.Message = "err"
 		p.resp.Status = 40000
 		return
 	}
 	p.resp.Message = "ok"
 	p.resp.Data = data
+	p.resp.Status = 20000
 }
 
 func (p *LocalTaskCountHandler) checkParam() error {

+ 3 - 1
handler/local_task_list.go

@@ -40,10 +40,12 @@ func (h *LocalTaskListHandler) getResponse() interface{} {
 }
 func (h *LocalTaskListHandler) run() {
 	conditions := pack.HttpLocalTaskRequestToCondition(h.req)
-	data, err := service.SLocalLife.GetLocalTaskList(h.ctx, h.req.PageSize, h.req.PageNum, h.req.OrderBy, h.req.OrderDesc, conditions)
+	data, err := service.SLocalLife.GetLocalTaskList(h.ctx, h.req.PageSize, h.req.PageNum-1, h.req.OrderBy, h.req.OrderDesc, conditions)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[LocalTaskListHandler] error LocalTaskList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	h.resp.Status = 20000

+ 4 - 0
handler/product_find.go

@@ -48,9 +48,13 @@ func (h *FindProductHandler) run() {
 		logrus.Errorf("[FindProductHandler] call FindByID err:%+v\n", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "")
 		log.Info("FindProduct fail,req:%+v", h.req)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	h.resp.Data = res
+	h.resp.Message = "ok"
+	h.resp.Status = 20000
 }
 func (h *FindProductHandler) checkParam() error {
 	return nil

+ 1 - 0
handler/project_change_taskStatus.go

@@ -69,6 +69,7 @@ func (p *ProjectChangeTaskStatusHandler) run() {
 		}
 	}
 	p.resp.Message = "ok"
+	p.resp.Status = 20000
 }
 
 func (p *ProjectChangeTaskStatusHandler) checkParam() error {

+ 7 - 1
handler/project_list.go

@@ -42,14 +42,20 @@ func (h *FullProjectListHandler) getResponse() interface{} {
 func (h *FullProjectListHandler) run() {
 	// enterpriseID := middleware.GetSessionAuth(h.ctx).EnterpriseID
 	condition := pack.HttpFullProjectRequestToCondition(h.req)
-	data, err := service.Project.GetFullProjectList(h.ctx, h.req.PageSize, h.req.PageNum, h.req.SupplierId, condition, h.req.AddToListStatus)
+	// Page := h.req.PageNum - 1
+	data, err := service.Project.GetFullProjectList(h.ctx, h.req.PageSize, h.req.PageNum-1, h.req.SupplierId, condition, h.req.AddToListStatus)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[FullProjectListHandler] error GetFullProjectList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
+		h.resp.Status = 40000
+		h.resp.Message = "err"
 		return
 	}
 	h.resp.Data = data
+	h.resp.Status = 20000
+	h.resp.Message = "ok"
 }
+
 func (h *FullProjectListHandler) checkParam() error {
 	return nil
 }

+ 4 - 1
handler/project_show.go

@@ -48,9 +48,12 @@ func (h *ShowProjectHandler) run() {
 		logrus.Errorf("[ShowProjectHandler] call Show err:%+v\n", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "")
 		log.Info("ShowProject fail,req:%+v", h.req)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
-	h.resp.Message = "成功查询项目"
+	h.resp.Message = "ok"
+	h.resp.Status = 20000
 	h.resp.Data = res
 }
 func (h *ShowProjectHandler) checkParam() error {

+ 4 - 1
handler/project_strategy.go

@@ -40,9 +40,12 @@ func (h *ProjectStrategyHandler) run() {
 	recruitStrategys, err := service.Project.GetProjectStrategys(h.ctx, h.req.ProjectId)
 	if err != nil {
 		h.resp.Message = err.Error()
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 	}
-	h.resp.Message = "成功查询招募策略"
+	h.resp.Message = "ok"
 	h.resp.Data = recruitStrategys
+	h.resp.Status = 20000
 }
 func (h *ProjectStrategyHandler) checkParam() error {
 	return nil

+ 5 - 1
handler/project_taskList.go

@@ -41,13 +41,17 @@ func (h *ProjectTaskListHandler) getResponse() interface{} {
 }
 func (h *ProjectTaskListHandler) run() {
 	conditions := pack.HttpProjectTaskRequestToCondition(h.req)
-	data, err := service.Project.GetProjectTaskList(h.ctx, h.req.PageSize, h.req.PageNum, h.req.OrderBy, h.req.OrderDesc, conditions)
+	data, err := service.Project.GetProjectTaskList(h.ctx, h.req.PageSize, h.req.PageNum-1, h.req.OrderBy, h.req.OrderDesc, conditions)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[ProjectTaskListHandler] error GetProjectTaskList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	h.resp.Data = data
+	h.resp.Message = "ok"
+	h.resp.Status = 20000
 }
 func (h *ProjectTaskListHandler) checkParam() error {
 	return nil

+ 2 - 1
handler/project_task_count.go

@@ -48,11 +48,12 @@ func (p *ProjectTaskCountHandler) run() {
 		logrus.Errorf("[ChangeTaskStatusHandler] call Create err:%+v\n", err)
 		util.HandlerPackErrorResp(p.resp, consts.ErrorInternal, "")
 		logrus.Info("ChangeTaskStatus fail,req:%+v", p.req)
-		p.resp.Message = "状态变更失败"
+		p.resp.Message = "err"
 		p.resp.Status = 40000
 		return
 	}
 	p.resp.Message = "ok"
+	p.resp.Status = 20000
 	p.resp.Data = data
 }
 

+ 5 - 3
handler/s_project_list.go

@@ -40,17 +40,19 @@ func (h *SProjectListHandler) getResponse() interface{} {
 }
 func (h *SProjectListHandler) run() {
 	condition := pack.HttpSProjectListRequestToCondition(h.req)
-	data, err := service.SProject.GetSProjectList(h.ctx, h.req.SupplierId, h.req.PageSize, h.req.PageNum, condition)
+	data, err := service.SProject.GetSProjectList(h.ctx, h.req.SupplierId, h.req.PageSize, h.req.PageNum-1, condition)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[FullProjectListHandler] error GetFullProjectList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
-		h.resp.Message = "失败"
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	// fmt.Println("data: ", data, "total: ", total)
 	// fmt.Println("sProjectInfo: ", sProjectInfo)
 	h.resp.Data = data
-	h.resp.Message = "成功"
+	h.resp.Status = 20000
+	h.resp.Message = "ok"
 }
 
 func (h *SProjectListHandler) checkParam() error {

+ 2 - 1
handler/s_special_project_list.go

@@ -43,7 +43,7 @@ func (h *SpecialSProjectListHandler) getResponse() interface{} {
 
 func (h *SpecialSProjectListHandler) run() {
 	condition := pack.HttpSpecialProjectRequestToCondition(h.req)
-	data, err := service.SProject.GetSpecialSProjectList(h.ctx, h.req.SupplierId, h.req.PageSize, h.req.PageNum, condition)
+	data, err := service.SProject.GetSpecialSProjectList(h.ctx, h.req.SupplierId, h.req.PageSize, h.req.PageNum-1, condition)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[FullProjectListHandler] error GetFullProjectList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
@@ -53,6 +53,7 @@ func (h *SpecialSProjectListHandler) run() {
 	}
 	h.resp.Status = 20000
 	h.resp.Data = data
+	h.resp.Message = "ok"
 }
 
 func (h *SpecialSProjectListHandler) checkParam() error {

+ 4 - 1
handler/show_s_project.go

@@ -48,9 +48,12 @@ func (h *ShowSProjectHandler) run() {
 		logrus.Errorf("[ShowProjectHandler] call Show err:%+v\n", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "")
 		log.Info("ShowProject fail,req:%+v", h.req)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
-	h.resp.Message = "成功查询项目"
+	h.resp.Message = "ok"
+	h.resp.Status = 20000
 	h.resp.Data = res
 }
 func (h *ShowSProjectHandler) checkParam() error {

+ 3 - 1
handler/special_add_strategy.go

@@ -43,8 +43,10 @@ func (p *SpecialAddStrategyHandler) run() {
 	err := service.SProject.CreateSpecialStrategy(p.ctx, p.req)
 	if err != nil {
 		p.resp.Message = err.Error()
+		p.resp.Status = 40000
 	}
-	p.resp.Message = "成功添加招募策略"
+	p.resp.Status = 20000
+	p.resp.Message = "ok"
 }
 
 func (p *SpecialAddStrategyHandler) checkParam() error {

+ 1 - 1
handler/special_local_add_to_list.go

@@ -38,7 +38,7 @@ func (h *SpecialLocalAddToListHandler) run() {
 	// 1. 加入商单
 	createErr := service.SLocalLife.ChangeSupplierStatus(h.ctx, h.req)
 	if createErr != nil {
-		h.resp.Status = 50000
+		h.resp.Status = 40000
 		h.resp.Message = "加入商单失败"
 		return
 	}

+ 5 - 1
handler/special_local_list.go

@@ -41,13 +41,17 @@ func (h *SpecialLocalListHandler) getResponse() interface{} {
 func (h *SpecialLocalListHandler) run() {
 	// enterpriseID := middleware.GetSessionAuth(h.ctx).EnterpriseID
 	condition := pack.HttpSpecialLocalLifeListRequestToCondition(h.req)
-	data, err := service.LocalLife.GetSpecialLocalLifeList(h.ctx, h.req.PageSize, h.req.PageNum, condition)
+	data, err := service.LocalLife.GetSpecialLocalLifeList(h.ctx, h.req.PageSize, h.req.PageNum-1, condition)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[FullListHandler] error GetFullProjectList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	h.resp.Data = data
+	h.resp.Message = "ok"
+	h.resp.Status = 20000
 }
 
 func (h *SpecialLocalListHandler) checkParam() error {

+ 4 - 1
handler/special_project_list.go

@@ -43,14 +43,17 @@ func (h *SpecialProjectListHandler) getResponse() interface{} {
 
 func (h *SpecialProjectListHandler) run() {
 	condition := pack.HttpSpecialProjectRequestToCondition(h.req)
-	data, err := service.SProject.GetSpecialProjectList(h.ctx, h.req.SupplierId, h.req.PageSize, h.req.PageNum, condition)
+	data, err := service.SProject.GetSpecialProjectList(h.ctx, h.req.SupplierId, h.req.PageSize, h.req.PageNum-1, condition)
 	if err != nil {
 		logrus.WithContext(h.ctx).Errorf("[FullProjectListHandler] error GetFullProjectList, err:%+v", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	h.resp.Status = 20000
 	h.resp.Data = data
+	h.resp.Message = "ok"
 }
 
 func (h *SpecialProjectListHandler) checkParam() error {

+ 2 - 2
handler/special_s_project_add_to_list.go

@@ -39,11 +39,11 @@ func (h *SpecialSProjectAddToListHandler) run() {
 	data = h.req
 	err := service.SProject.UpdateSProject(h.ctx, data)
 	if err != nil {
-		h.resp.Status = 50000
+		h.resp.Status = 40000
 		h.resp.Message = "同意定向邀约失败"
 	}
 	h.resp.Status = 20000
-	h.resp.Message = "同意定向邀约成功"
+	h.resp.Message = "ok"
 }
 
 func (h *SpecialSProjectAddToListHandler) checkParam() error {

+ 4 - 0
handler/store_find.go

@@ -46,9 +46,13 @@ func (h *FindStoreHandler) run() {
 		logrus.Errorf("[FindStoreHandler] call FindByID err:%+v\n", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "")
 		log.Info("FindStore fail,req:%+v", h.req)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	h.resp.Data = res
+	h.resp.Message = "ok"
+	h.resp.Status = 20000
 }
 func (h *FindStoreHandler) checkParam() error {
 	return nil

+ 4 - 0
handler/team_buying_find.go

@@ -46,9 +46,13 @@ func (h *FindTeamBuyingHandler) run() {
 		logrus.Errorf("[FindTeamBuyingHandler] call FindByID err:%+v\n", err)
 		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "")
 		log.Info("FindTeamBuying fail,req:%+v", h.req)
+		h.resp.Message = "err"
+		h.resp.Status = 40000
 		return
 	}
 	h.resp.Data = res
+	h.resp.Message = "ok"
+	h.resp.Status = 20000
 }
 func (h *FindTeamBuyingHandler) checkParam() error {
 	return nil

+ 1 - 1
model/gorm_model/product.go

@@ -20,7 +20,7 @@ type YounggeeProduct struct {
 	PublicCommission    float64   `gorm:"column:public_commission"`                     // 公开佣金
 	ExclusiveCommission float64   `gorm:"column:exclusive_commission"`                  // 专属佣金
 	CommissionPrice     float64   `gorm:"column:commission_price"`                      // 佣金金额
-	KuaishouProductId   int64     `gorm:"column:kuaishou_product_id"`                   // 快手商品ID
+	KuaishouProductId   string    `gorm:"column:kuaishou_product_id"`                   // 快手商品ID
 	SalesCount          string    `gorm:"column:sales_count"`                           // 商品30天销量
 }
 

+ 2 - 2
model/http_model/common_response.go

@@ -2,8 +2,8 @@ package http_model
 
 // CommonResponse 接口通用的返回结构体
 type CommonResponse struct {
-	Status  int32       `json:"status"`
-	Message string      `json:"message"`
+	Status  int32       `json:"code"`
+	Message string      `json:"msg"`
 	Data    interface{} `json:"data"`
 }
 type CommonRequest interface {

+ 1 - 1
model/http_model/full_local_life_list.go

@@ -2,7 +2,7 @@ package http_model
 
 type FullListRequest struct {
 	PageSize        int32  `json:"page_size"`
-	PageNum         int32  `json:"page_num"`
+	PageNum         int32  `json:"page"`
 	SupplierId      int    `json:"supplier_id"`        // 服务商ID
 	LocalPlatform   int    `json:"local_platform"`     // 本地生活平台
 	TaskForm        int    `json:"task_form"`          // 任务形式,1-2分别代表线下探店,素材分发

+ 1 - 1
model/http_model/full_project_list.go

@@ -2,7 +2,7 @@ package http_model
 
 type FullProjectListRequest struct {
 	PageSize           int32  `json:"page_size"`
-	PageNum            int32  `json:"page_num"`
+	PageNum            int32  `json:"page"`
 	SupplierId         int    `json:"supplier_id"`          // 服务商ID
 	ProjectId          string `json:"project_id"`           // 种草任务ID
 	ProjectName        string `json:"project_name"`         // 种草任务名

+ 1 - 1
model/http_model/local_task_list.go

@@ -2,7 +2,7 @@ package http_model
 
 type LocalTaskListRequest struct {
 	PageSize         int32    `json:"page_size"`
-	PageNum          int32    `json:"page_num"`
+	PageNum          int32    `json:"page"`
 	SLocalId         int      `json:"s_local_id"`        // 服务商加入商单的本地生活ID
 	TaskStatus       int      `json:"task_status"`       // 任务状态
 	SupplierStatus   int      `json:"supplier_status"`   // 服务商任务状态 0表示达人来源非服务商 1待选 2已选 3落选

+ 1 - 1
model/http_model/product_find.go

@@ -24,7 +24,7 @@ type FindProductData struct {
 	PublicCommission    float64        `json:"public_commission"`    // 公开佣金
 	ExclusiveCommission float64        `json:"exclusive_commission"` // 专属佣金
 	CommissionPrice     float64        `json:"commission_price"`     // 佣金金额
-	KuaishouProductId   int64          `json:"kuaishou_product_id"`  // 快手商品ID
+	KuaishouProductId   string         `json:"kuaishou_product_id"`  // 快手商品ID
 	SalesCount          string         `json:"sales_count"`          // 商品30天销量
 }
 

+ 1 - 1
model/http_model/project_taskList.go

@@ -6,7 +6,7 @@ import (
 
 type ProjectTaskListRequest struct {
 	PageSize         int64    `json:"page_size"`
-	PageNum          int64    `json:"page_num"`
+	PageNum          int64    `json:"page"`
 	TaskStage        int      `json:"task_stage"`        // 子任务阶段
 	TaskStatus       int      `json:"task_status"`       // 任务状态
 	PlatformNickname string   `json:"platform_nickname"` // 账号昵称

+ 1 - 1
model/http_model/s_local_life_list.go

@@ -2,7 +2,7 @@ package http_model
 
 type FullSLocalListRequest struct {
 	PageSize        int32  `json:"page_size"`
-	PageNum         int32  `json:"page_num"`
+	PageNum         int32  `json:"page"`
 	SupplierId      int    `json:"supplier_id"`        // 服务商ID
 	LocalPlatform   int    `json:"local_platform"`     // 本地生活平台
 	TaskStatus      int    `json:"task_status"`        // 任务状态

+ 1 - 1
model/http_model/s_project_list.go

@@ -10,7 +10,7 @@ type SProjectListRequest struct {
 	ContentType     int    `json:"content_type"`     // 内容形式,1代表图文,2代表视频
 	SupplierId      int    `json:"supplier_id"`      // 服务商ID
 	ProjectStatus   int    `json:"project_status"`   // 种草任务状态
-	PageNum         int32  `json:"page_num"`
+	PageNum         int32  `json:"page"`
 	PageSize        int32  `json:"page_size"`
 }
 

+ 1 - 1
model/http_model/special_local_list.go

@@ -2,7 +2,7 @@ package http_model
 
 type SpecialLocalListRequest struct {
 	PageSize        int32  `json:"page_size"`
-	PageNum         int32  `json:"page_num"`
+	PageNum         int32  `json:"page"`
 	SupplierId      int    `json:"supplier_id"`        // 服务商ID
 	LocalPlatform   int    `json:"local_platform"`     // 本地生活平台
 	TaskForm        int    `json:"task_form"`          // 任务形式,1-2分别代表线下探店,素材分发

+ 1 - 1
model/http_model/special_project_list.go

@@ -4,7 +4,7 @@ import "time"
 
 type SpecialProjectListRequest struct {
 	PageSize           int32  `json:"page_size"`
-	PageNum            int32  `json:"page_num"`
+	PageNum            int32  `json:"page"`
 	ProjectName        string `json:"project_name"`         // 项目名
 	ProjectType        int    `json:"project_type"`         // 种草任务类型,1为公开,2为定向
 	ProjectStatus      int    `json:"project_status"`       // 种草任务状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案

+ 3 - 3
route/init.go

@@ -110,9 +110,9 @@ func InitRoute(r *gin.Engine) {
 	localLife := r.Group("/youngee/l/localLife")
 	{
 		localLife.Use(middleware.LoginAuthMiddleware)
-		localLife.POST("/localLife/fullLocalList", handler.WrapFullListHandler)            // 商单广场-公开本地生活任务列表
-		localLife.POST("/localLife/detail", handler.WrapLocalLifeDetailHandler)            // 本地生活任务详情
-		localLife.POST("/localLife/specialLocalList", handler.WrapSpecialLocalListHandler) // 商单广场-定向本地生活任务列表
+		localLife.POST("/fullLocalList", handler.WrapFullListHandler)            // 商单广场-公开本地生活任务列表
+		localLife.POST("/detail", handler.WrapLocalLifeDetailHandler)            // 本地生活任务详情
+		localLife.POST("/specialLocalList", handler.WrapSpecialLocalListHandler) // 商单广场-定向本地生活任务列表
 	}
 
 	// 服务商本地生活