Pārlūkot izejas kodu

Merge branch 'cygx_9.7' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 2 gadi atpakaļ
vecāks
revīzija
c1546ec453
2 mainītis faili ar 2 papildinājumiem un 7 dzēšanām
  1. 1 6
      controllers/industry.go
  2. 1 1
      routers/commentsRouter.go

+ 1 - 6
controllers/industry.go

@@ -17,7 +17,7 @@ type IndustryController struct {
 // @Description 关注/取消关注 接口
 // @Param	request	body models.CygxIndustryFllowRep true "type json string"
 // @Success 200
-// @router /fllow [post]
+// @router /follow [post]
 func (this *IndustryController) Fllow() {
 	br := new(models.BaseResponse).Init()
 	defer func() {
@@ -30,11 +30,6 @@ func (this *IndustryController) Fllow() {
 		br.Ret = 408
 		return
 	}
-	//type IndustryFllowArryReq struct {
-	//	SourceId int    `description:"资源ID"`
-	//	Source   string `description:"资源类型 报告 :article 、活动 :activity"`
-	//	DoType   string `description:"操作方式 关注 :add 、取消关注 :cancel"`
-	//}
 	uid := user.UserId
 	var req models.IndustryFllowArryReq
 

+ 1 - 1
routers/commentsRouter.go

@@ -703,7 +703,7 @@ func init() {
     beego.GlobalControllerRouter["hongze/hongze_cygx/controllers:IndustryController"] = append(beego.GlobalControllerRouter["hongze/hongze_cygx/controllers:IndustryController"],
         beego.ControllerComments{
             Method: "Fllow",
-            Router: `/fllow`,
+            Router: `/follow`,
             AllowHTTPMethods: []string{"post"},
             MethodParams: param.Make(),
             Filters: nil,