This commit is contained in:
2023-06-28 10:33:50 +08:00
parent 02a26f769c
commit cf321e6808
4 changed files with 65 additions and 1 deletions

View File

@@ -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;
}
}