|
@@ -15,7 +15,7 @@ type RankController struct { |
|
@@ -15,7 +15,7 @@ type RankController struct { |
15
|
BaseController
|
15
|
BaseController
|
16
|
}
|
16
|
}
|
17
|
|
17
|
|
18
|
-//GetRankType ..
|
18
|
+//GetRankType 榜单类型列表
|
19
|
//@router /rank/list
|
19
|
//@router /rank/list
|
20
|
func (c RankController) GetRankType() {
|
20
|
func (c RankController) GetRankType() {
|
21
|
var msg *protocol.ResponseMessage
|
21
|
var msg *protocol.ResponseMessage
|
|
@@ -28,7 +28,7 @@ func (c RankController) GetRankType() { |
|
@@ -28,7 +28,7 @@ func (c RankController) GetRankType() { |
28
|
return
|
28
|
return
|
29
|
}
|
29
|
}
|
30
|
|
30
|
|
31
|
-//EditRankType ...
|
31
|
+//EditRankType 榜单类型列表添加
|
32
|
//@router /rank/edit
|
32
|
//@router /rank/edit
|
33
|
func (c RankController) EditRankType() {
|
33
|
func (c RankController) EditRankType() {
|
34
|
var msg *protocol.ResponseMessage
|
34
|
var msg *protocol.ResponseMessage
|
|
@@ -82,7 +82,7 @@ func (c RankController) RankTypeForbidAllow() { |
|
@@ -82,7 +82,7 @@ func (c RankController) RankTypeForbidAllow() { |
82
|
return
|
82
|
return
|
83
|
}
|
83
|
}
|
84
|
|
84
|
|
85
|
-//RankSeasonList ...
|
85
|
+//RankSeasonList 赛季列表
|
86
|
//@router /rank/season/list
|
86
|
//@router /rank/season/list
|
87
|
func (c RankController) RankSeasonList() {
|
87
|
func (c RankController) RankSeasonList() {
|
88
|
var msg *protocol.ResponseMessage
|
88
|
var msg *protocol.ResponseMessage
|
|
@@ -102,7 +102,7 @@ func (c RankController) RankSeasonList() { |
|
@@ -102,7 +102,7 @@ func (c RankController) RankSeasonList() { |
102
|
return
|
102
|
return
|
103
|
}
|
103
|
}
|
104
|
|
104
|
|
105
|
-//RankSeasonAdd ...
|
105
|
+//RankSeasonAdd 赛季列表添加
|
106
|
//@router /rank/season/add
|
106
|
//@router /rank/season/add
|
107
|
func (c RankController) RankSeasonAdd() {
|
107
|
func (c RankController) RankSeasonAdd() {
|
108
|
var msg *protocol.ResponseMessage
|
108
|
var msg *protocol.ResponseMessage
|
|
@@ -207,7 +207,7 @@ func (c RankController) RankSeasonEdit() { |
|
@@ -207,7 +207,7 @@ func (c RankController) RankSeasonEdit() { |
207
|
return
|
207
|
return
|
208
|
}
|
208
|
}
|
209
|
|
209
|
|
210
|
-//RankRangeList ...
|
210
|
+//RankRangeList 赛季榜单参与人列表
|
211
|
//@router /rank/range/list
|
211
|
//@router /rank/range/list
|
212
|
func (c RankController) RankRangeList() {
|
212
|
func (c RankController) RankRangeList() {
|
213
|
var msg *protocol.ResponseMessage
|
213
|
var msg *protocol.ResponseMessage
|
|
@@ -221,7 +221,7 @@ func (c RankController) RankRangeList() { |
|
@@ -221,7 +221,7 @@ func (c RankController) RankRangeList() { |
221
|
return
|
221
|
return
|
222
|
}
|
222
|
}
|
223
|
|
223
|
|
224
|
-//RankRangeAdd ...
|
224
|
+//RankRangeAdd 赛季榜单参与人列表添加
|
225
|
//@router /rank/range/add
|
225
|
//@router /rank/range/add
|
226
|
func (c RankController) RankRangeAdd() {
|
226
|
func (c RankController) RankRangeAdd() {
|
227
|
var msg *protocol.ResponseMessage
|
227
|
var msg *protocol.ResponseMessage
|
|
@@ -266,7 +266,7 @@ func (c RankController) RankRangeAdd() { |
|
@@ -266,7 +266,7 @@ func (c RankController) RankRangeAdd() { |
266
|
return
|
266
|
return
|
267
|
}
|
267
|
}
|
268
|
|
268
|
|
269
|
-//RankRangeEdit ...
|
269
|
+//RankRangeEdit 赛季榜单参与人编辑
|
270
|
//@router /rank/range/edit
|
270
|
//@router /rank/range/edit
|
271
|
func (c RankController) RankRangeEdit() {
|
271
|
func (c RankController) RankRangeEdit() {
|
272
|
var msg *protocol.ResponseMessage
|
272
|
var msg *protocol.ResponseMessage
|
|
@@ -342,7 +342,7 @@ func (c RankController) RankRangeForbidAllow() { |
|
@@ -342,7 +342,7 @@ func (c RankController) RankRangeForbidAllow() { |
342
|
return
|
342
|
return
|
343
|
}
|
343
|
}
|
344
|
|
344
|
|
345
|
-//RankRangeInfo ...
|
345
|
+//RankRangeInfo 赛季榜单参与人详情
|
346
|
//@router /rank/range/info
|
346
|
//@router /rank/range/info
|
347
|
func (c RankController) RankRangeInfo() {
|
347
|
func (c RankController) RankRangeInfo() {
|
348
|
var msg *protocol.ResponseMessage
|
348
|
var msg *protocol.ResponseMessage
|
|
@@ -395,7 +395,7 @@ func (c RankController) RankRangeSort() { |
|
@@ -395,7 +395,7 @@ func (c RankController) RankRangeSort() { |
395
|
return
|
395
|
return
|
396
|
}
|
396
|
}
|
397
|
|
397
|
|
398
|
-//RankItemList ...
|
398
|
+//RankItemList 评比项列表
|
399
|
//@router /rank/item/list
|
399
|
//@router /rank/item/list
|
400
|
func (c RankController) RankItemList() {
|
400
|
func (c RankController) RankItemList() {
|
401
|
var msg *protocol.ResponseMessage
|
401
|
var msg *protocol.ResponseMessage
|
|
@@ -443,3 +443,26 @@ func (c RankController) RankItemEdit() { |
|
@@ -443,3 +443,26 @@ func (c RankController) RankItemEdit() { |
443
|
msg = protocol.NewReturnResponse(nil, err)
|
443
|
msg = protocol.NewReturnResponse(nil, err)
|
444
|
return
|
444
|
return
|
445
|
}
|
445
|
}
|
|
|
446
|
+
|
|
|
447
|
+//RankRangeMove 赛季榜单参与人分组 批量移动
|
|
|
448
|
+//@router /rank/range/move
|
|
|
449
|
+func (c RankController) RankRangeMove() {
|
|
|
450
|
+ var msg *protocol.ResponseMessage
|
|
|
451
|
+ defer func() {
|
|
|
452
|
+ c.ResposeJson(msg)
|
|
|
453
|
+ }()
|
|
|
454
|
+ type Parameter struct {
|
|
|
455
|
+ FromId int64 `json:"from_id"`
|
|
|
456
|
+ ToId string `json:"name"`
|
|
|
457
|
+ RankTypeId int8 `json:"rank_type_id"`
|
|
|
458
|
+ RelationId []int64 `json:"relation_id"`
|
|
|
459
|
+ }
|
|
|
460
|
+ var param Parameter
|
|
|
461
|
+ if err := json.Unmarshal(c.Ctx.Input.RequestBody, ¶m); err != nil {
|
|
|
462
|
+ log.Error("json 解析失败 err:%s", err)
|
|
|
463
|
+ msg = protocol.BadRequestParam("1")
|
|
|
464
|
+ return
|
|
|
465
|
+ }
|
|
|
466
|
+
|
|
|
467
|
+ return
|
|
|
468
|
+} |