mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 创建企业用户
This commit is contained in:
@@ -3,6 +3,7 @@ package com.jsowell.web.controller.pile;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.huifu.adapay.core.exception.BaseAdaPayException;
|
||||
import com.jsowell.adapay.dto.AdapayMemberInfoDTO;
|
||||
import com.jsowell.adapay.dto.CreateCorpMemberDTO;
|
||||
import com.jsowell.adapay.dto.UpdateAccountConfigDTO;
|
||||
import com.jsowell.adapay.service.AdapayMemberService;
|
||||
import com.jsowell.adapay.vo.AdapayAccountBalanceVO;
|
||||
@@ -10,6 +11,7 @@ import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.core.domain.AjaxResult;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -99,6 +101,7 @@ public class AdapayMemberController extends BaseController {
|
||||
|
||||
/**
|
||||
* 换绑银行卡
|
||||
* http://localhost:8080/adapay/member/changeBankCard
|
||||
* changeBankCard
|
||||
*/
|
||||
@PostMapping("/changeBankCard")
|
||||
@@ -113,4 +116,21 @@ public class AdapayMemberController extends BaseController {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建企业用户
|
||||
* http://localhost:8080/adapay/member/createCorpMember
|
||||
*/
|
||||
@PostMapping("/createCorpMember")
|
||||
public AjaxResult createCorpMember(@Validated @RequestBody CreateCorpMemberDTO dto) {
|
||||
AjaxResult result;
|
||||
try {
|
||||
adapayMemberService.createCorpMember(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (BaseAdaPayException e) {
|
||||
logger.error("查询汇付账户余额error", e);
|
||||
result = AjaxResult.error();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user