|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
package au.com.royalpay.payment.manage.management.sysconfig.web;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.management.sysconfig.beans.PermissionClientVO;
|
|
|
|
|
import au.com.royalpay.payment.manage.management.sysconfig.core.PermissionPartnerManager;
|
|
|
|
|
import au.com.royalpay.payment.manage.merchants.core.ClientManager;
|
|
|
|
|
import au.com.royalpay.payment.manage.system.core.PermissionClientModulesService;
|
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
|
|
|
|
|
@ -26,6 +28,10 @@ import javax.annotation.Resource;
|
|
|
|
|
public class SysPermissionClientController {
|
|
|
|
|
@Resource
|
|
|
|
|
private PermissionClientModulesService permissionClientModulesService;
|
|
|
|
|
@Resource
|
|
|
|
|
private PermissionPartnerManager permissionPartnerManager;
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientManager clientManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
|
|
|
@ -38,4 +44,11 @@ public class SysPermissionClientController {
|
|
|
|
|
permissionClientModulesService.switchValid(id,permissionClientVO.getIsValid(),loginManager);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/init", method = RequestMethod.POST)
|
|
|
|
|
public void init(@RequestBody JSONObject param) {
|
|
|
|
|
JSONObject client = clientManager.getClientInfoByMoniker(param.getString("client_moniker"));
|
|
|
|
|
permissionPartnerManager.permissionClientModuleSave(client.getIntValue("client_id"),client.getString("client_moniker"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|