|
|
|
@ -50,20 +50,20 @@ public class AccountInfoController {
|
|
|
|
|
public CommonResult<Object> getParentAccount(@RequestParam(value = "sellerNick") String sellerNick, Pageable pageable) {
|
|
|
|
|
return requestCore.getParentAccount(sellerNick, pageable);
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
// @GetMapping("/pay/template")
|
|
|
|
|
// @ApiOperation("查询套餐")
|
|
|
|
|
// public CommonResult<Object> getPayTemplate() {
|
|
|
|
|
// return aliPayClient.getPayTemplate();
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @GetMapping("/account/authorize")
|
|
|
|
|
// @ApiOperation("对子账号授权")
|
|
|
|
|
// public CommonResult<Object> authorizeChildrenAccount(Long childrenAccountId, Long payTemplateId) {
|
|
|
|
|
// if (childrenAccountId == DefaultNumberConstants.ZERO_NUMBER || payTemplateId == DefaultNumberConstants.ZERO_NUMBER) {
|
|
|
|
|
// return new CommonResult<>().validateFailed("参数错误");
|
|
|
|
|
// }
|
|
|
|
|
// return aliPayClient.authorizeChildrenAccount(childrenAccountId, payTemplateId);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
@GetMapping("/pay/template")
|
|
|
|
|
@ApiOperation("查询套餐")
|
|
|
|
|
public CommonResult<Object> getPayTemplate() {
|
|
|
|
|
return requestCore.getPayTemplate();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/account/authorize")
|
|
|
|
|
@ApiOperation("对子账号授权")
|
|
|
|
|
public CommonResult<Object> authorizeChildrenAccount(Long childrenAccountId, Long payTemplateId) {
|
|
|
|
|
if (childrenAccountId == DefaultNumberConstants.ZERO_NUMBER || payTemplateId == DefaultNumberConstants.ZERO_NUMBER) {
|
|
|
|
|
return new CommonResult<>().validateFailed("参数错误");
|
|
|
|
|
}
|
|
|
|
|
return requestCore.authorizeChildrenAccount(childrenAccountId, payTemplateId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|