新增 删除结算账户接口

This commit is contained in:
Lemon
2025-06-23 15:02:06 +08:00
parent c5187d1657
commit d892f2d7b2
2 changed files with 23 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import com.jsowell.adapay.dto.*;
import com.jsowell.adapay.service.AdapayService;
import com.jsowell.adapay.vo.AdapayAccountBalanceVO;
import com.jsowell.common.annotation.Log;
import com.jsowell.common.constant.Constants;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.core.domain.AjaxResult;
import com.jsowell.common.core.page.PageResponse;
@@ -15,10 +16,7 @@ import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.service.ClearingWithdrawInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@@ -201,4 +199,22 @@ public class AdapayMemberController extends BaseController {
}
return result;
}
/**
* 删除结算账户
* @param dto
* @return
*/
@PostMapping("/deleteSettleAccount")
public AjaxResult deleteSettleAccount(@RequestBody AdapayMemberInfoDTO dto) {
AjaxResult result = null;
try {
adapayService.createDeleteSettleAccountRequest(dto.getAdapayMemberId(), dto.getSettleAccountId(), Constants.DEFAULT_APP_ID);
result = AjaxResult.success();
} catch (Exception e) {
logger.error("删除结算账户 error,", e);
result = AjaxResult.error();
}
return result;
}
}