|
|
@ -1,6 +1,7 @@
|
|
|
|
package au.com.royalpay.payment.manage.signin.web;
|
|
|
|
package au.com.royalpay.payment.manage.signin.web;
|
|
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.permission.manager.RequireManager;
|
|
|
|
import au.com.royalpay.payment.manage.permission.manager.RequireManager;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.signin.beans.ManagerInfo;
|
|
|
|
import au.com.royalpay.payment.manage.signin.core.ManagerWechatBindService;
|
|
|
|
import au.com.royalpay.payment.manage.signin.core.ManagerWechatBindService;
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
import au.com.royalpay.payment.tools.connections.mpsupport.beans.WxOauthType;
|
|
|
|
import au.com.royalpay.payment.tools.connections.mpsupport.beans.WxOauthType;
|
|
|
@ -32,4 +33,11 @@ public class ManagerWechatBindController {
|
|
|
|
public JSONObject newBindRequest(@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
public JSONObject newBindRequest(@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
return managerWechatBindService.newBindRequest(manager.getString("manager_id"));
|
|
|
|
return managerWechatBindService.newBindRequest(manager.getString("manager_id"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "/remove/{manager_id}")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public JSONObject removeBind(@PathVariable("manager_id") String managerId) {
|
|
|
|
|
|
|
|
return managerWechatBindService.removeBindWechat(managerId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|