|
|
|
|
@ -7,6 +7,7 @@ import au.com.royalpay.payment.manage.permission.manager.ManagerMapping;
|
|
|
|
|
import au.com.royalpay.payment.manage.signin.beans.ChangePwdBean;
|
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
|
import au.com.royalpay.payment.tools.connections.attachment.core.AttachmentClient;
|
|
|
|
|
import au.com.royalpay.payment.tools.device.manageadvise.AppClientController;
|
|
|
|
|
import au.com.royalpay.payment.tools.http.HttpUtils;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
@ -21,7 +22,7 @@ import javax.validation.Valid;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
|
@AppClientController
|
|
|
|
|
@RequestMapping("/api/v1.0/manage/app")
|
|
|
|
|
public class ManageAppController {
|
|
|
|
|
Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
@ -49,7 +50,7 @@ public class ManageAppController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/referrer", method = RequestMethod.GET)
|
|
|
|
|
public List<JSONObject> getReferrerList(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device, @RequestBody JSONObject token) {
|
|
|
|
|
public List<JSONObject> getReferrerList(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device) {
|
|
|
|
|
return manageAppService.getReferrerList(device);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -60,7 +61,7 @@ public class ManageAppController {
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/merchant/register", method = RequestMethod.POST)
|
|
|
|
|
public JSONObject registerPartner(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device, @RequestBody @Valid ClientRegisterInfo registery,
|
|
|
|
|
Errors errors){
|
|
|
|
|
Errors errors) {
|
|
|
|
|
HttpUtils.handleValidErrors(errors);
|
|
|
|
|
return manageAppService.registerClient(device, registery);
|
|
|
|
|
}
|
|
|
|
|
@ -91,6 +92,18 @@ public class ManageAppController {
|
|
|
|
|
return manageAppService.getCommons(device);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/org_prize/list", method = RequestMethod.GET)
|
|
|
|
|
public List<JSONObject> getOrgPrizeList(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device) {
|
|
|
|
|
return manageAppService.getOrgPrizeList(device);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/bd/rates", method = RequestMethod.GET)
|
|
|
|
|
public List<JSONObject> getBdConfigRates(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device) {
|
|
|
|
|
return manageAppService.getBdConfigRates(device);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/bd/kpi", method = RequestMethod.GET)
|
|
|
|
|
public JSONObject getBdConfigKpi(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device) {
|
|
|
|
|
return manageAppService.getBdConfigKpi(device);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|