|
@@ -63,6 +63,8 @@ func XcxApiControllersRegisterRouters() {
|
63
|
63
|
beego.Router("/xcx/api/mobile/getarticlist", &XcxApiController{}, "Get:GetArticList")
|
64
|
64
|
|
65
|
65
|
beego.Router("/xcx/api/mobile/getarticlistdetail", &XcxApiController{}, "Get:GetArticListDetail")
|
|
66
|
+
|
|
67
|
+ beego.Router("/xcx/api/mobile/getstoryscore", &XcxApiController{}, "Get:GetStoryScoreList")
|
66
|
68
|
}
|
67
|
69
|
|
68
|
70
|
type XcxApiController struct {
|
|
@@ -910,3 +912,15 @@ func (this *XcxApiController) GetArticListDetail() {
|
910
|
912
|
"story": detail,
|
911
|
913
|
})
|
912
|
914
|
}
|
|
915
|
+
|
|
916
|
+func (this *XcxApiController) GetStoryScoreList() {
|
|
917
|
+
|
|
918
|
+ //page, _ := this.GetInt64("page")
|
|
919
|
+ //limit, _ := this.GetInt64("limit")
|
|
920
|
+ //activity_id, _ := this.GetInt64("activity_id")
|
|
921
|
+ list, total, _ := service.GetStoryScoreList(6, 1, 10)
|
|
922
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
923
|
+ "list": list,
|
|
924
|
+ "total": total,
|
|
925
|
+ })
|
|
926
|
+}
|