正在显示
3 个修改的文件
包含
4 行增加
和
3 行删除
@@ -121,7 +121,7 @@ func (c RankController) RankSeasonAdd() { | @@ -121,7 +121,7 @@ func (c RankController) RankSeasonAdd() { | ||
121 | endTime int64 | 121 | endTime int64 |
122 | ) | 122 | ) |
123 | companyid := c.GetCompanyId() | 123 | companyid := c.GetCompanyId() |
124 | - err := serverank.AddRankSeason(param.RankTypeId, beginTime, endTime, param.Name, companyid) | 124 | + err := serverank.AddRankPeriod(param.RankTypeId, beginTime, endTime, param.Name, companyid) |
125 | msg = protocol.NewReturnResponse(nil, err) | 125 | msg = protocol.NewReturnResponse(nil, err) |
126 | return | 126 | return |
127 | } | 127 | } |
@@ -150,7 +150,7 @@ func (c RankController) RankSeasonEdit() { | @@ -150,7 +150,7 @@ func (c RankController) RankSeasonEdit() { | ||
150 | endTime int64 | 150 | endTime int64 |
151 | ) | 151 | ) |
152 | companyid := c.GetCompanyId() | 152 | companyid := c.GetCompanyId() |
153 | - err := serverank.EditRankSeason(param.Id, beginTime, endTime, param.Name, companyid) | 153 | + err := serverank.EditRankPeriod(param.Id, beginTime, endTime, param.Name, companyid) |
154 | msg = protocol.NewReturnResponse(nil, err) | 154 | msg = protocol.NewReturnResponse(nil, err) |
155 | return | 155 | return |
156 | } | 156 | } |
@@ -118,6 +118,7 @@ func init() { | @@ -118,6 +118,7 @@ func init() { | ||
118 | beego.NSRouter("/item/list", &controllers.RankController{}, "post:RankItemList"), | 118 | beego.NSRouter("/item/list", &controllers.RankController{}, "post:RankItemList"), |
119 | beego.NSRouter("/item/edit", &controllers.RankController{}, "post:RankItemEdit"), | 119 | beego.NSRouter("/item/edit", &controllers.RankController{}, "post:RankItemEdit"), |
120 | ), | 120 | ), |
121 | + beego.NSNamespace("/achievement"), | ||
121 | ) | 122 | ) |
122 | 123 | ||
123 | nsAuth := beego.NewNamespace("/auth", | 124 | nsAuth := beego.NewNamespace("/auth", |
@@ -195,7 +195,7 @@ func AddRankPeriod(rankTypeId int64, beginTime int64, endTime int64, name string | @@ -195,7 +195,7 @@ func AddRankPeriod(rankTypeId int64, beginTime int64, endTime int64, name string | ||
195 | return nil | 195 | return nil |
196 | } | 196 | } |
197 | 197 | ||
198 | -func EditRankSeason(id int64, beginTime int64, endTime int64, name string, companyid int64) error { | 198 | +func EditRankPeriod(id int64, beginTime int64, endTime int64, name string, companyid int64) error { |
199 | var ( | 199 | var ( |
200 | err error | 200 | err error |
201 | m *models.RankPeriod | 201 | m *models.RankPeriod |
-
请 注册 或 登录 后发表评论