mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
This commit is contained in:
@@ -5,6 +5,7 @@ import com.huifu.adapay.core.exception.BaseAdaPayException;
|
||||
import com.jsowell.adapay.dto.AdapayMemberInfoDTO;
|
||||
import com.jsowell.adapay.dto.CreateSettleAccountDTO;
|
||||
import com.jsowell.adapay.dto.UpdateAccountConfigDTO;
|
||||
import com.jsowell.adapay.dto.WithdrawDTO;
|
||||
import com.jsowell.adapay.service.AdapayMemberService;
|
||||
import com.jsowell.adapay.vo.AdapayAccountBalanceVO;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
@@ -117,5 +118,19 @@ public class AdapayMemberController extends BaseController {
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 提现接口
|
||||
*/
|
||||
@PostMapping("/withdraw")
|
||||
public AjaxResult withdraw(@RequestBody WithdrawDTO dto) {
|
||||
AjaxResult result;
|
||||
try {
|
||||
adapayMemberService.withdraw(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (BaseAdaPayException e) {
|
||||
logger.error("提现接口 error", e);
|
||||
result = AjaxResult.error();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user