特殊任务购买
This commit is contained in:
@@ -198,8 +198,19 @@ func (c *JobController) ImprotMtMembers() {
|
|||||||
c.callImprotMtMembers(func(params *tJobImprotMtMembersParams) (retVal interface{}, errCode string, err error) {
|
c.callImprotMtMembers(func(params *tJobImprotMtMembersParams) (retVal interface{}, errCode string, err error) {
|
||||||
var mtMembers []*model.MtMember
|
var mtMembers []*model.MtMember
|
||||||
if err = jxutils.Strings2Objs(params.Payload, &mtMembers); err == nil {
|
if err = jxutils.Strings2Objs(params.Payload, &mtMembers); err == nil {
|
||||||
|
err = cms.ImprotMtMembers(params.Ctx, mtMembers)
|
||||||
}
|
}
|
||||||
return retVal, "", err
|
return retVal, "", err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @Title 特殊任务购买
|
||||||
|
// @Description 特殊任务购买
|
||||||
|
// @Param token header string true "认证token"
|
||||||
|
// @Param jobID formData int true "任务ID"
|
||||||
|
// @Success 200 {object} controllers.CallResult
|
||||||
|
// @Failure 200 {object} controllers.CallResult
|
||||||
|
// @router /BuySpecialJob [post]
|
||||||
|
func (c *JobController) BuySpecialJob() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -178,6 +178,15 @@ func init() {
|
|||||||
Filters: nil,
|
Filters: nil,
|
||||||
Params: nil})
|
Params: nil})
|
||||||
|
|
||||||
|
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
||||||
|
beego.ControllerComments{
|
||||||
|
Method: "BuySpecialJob",
|
||||||
|
Router: `/BuySpecialJob`,
|
||||||
|
AllowHTTPMethods: []string{"post"},
|
||||||
|
MethodParams: param.Make(),
|
||||||
|
Filters: nil,
|
||||||
|
Params: nil})
|
||||||
|
|
||||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "CancelAcceptJob",
|
Method: "CancelAcceptJob",
|
||||||
|
|||||||
Reference in New Issue
Block a user