+ TransferLegacyWeixins
This commit is contained in:
@@ -204,3 +204,17 @@ func (c *User2Controller) DeleteUsers4Role() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 给指定角色添加用户列表
|
||||
// @Description 给指定角色添加用户列表
|
||||
// @Param token header string true "认证token"
|
||||
// @Param mobile formData string false "手机号"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /TransferLegacyWeixins [post]
|
||||
func (c *User2Controller) TransferLegacyWeixins() {
|
||||
c.callTransferLegacyWeixins(func(params *tUser2TransferLegacyWeixinsParams) (retVal interface{}, errCode string, err error) {
|
||||
err = cms.TransferLegacyWeixins(params.Mobile)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1771,6 +1771,15 @@ func init() {
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:User2Controller"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:User2Controller"],
|
||||
beego.ControllerComments{
|
||||
Method: "TransferLegacyWeixins",
|
||||
Router: `/TransferLegacyWeixins`,
|
||||
AllowHTTPMethods: []string{"post"},
|
||||
MethodParams: param.Make(),
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:UserController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:UserController"],
|
||||
beego.ControllerComments{
|
||||
Method: "TmpAddMobile2Mobile",
|
||||
|
||||
Reference in New Issue
Block a user