feat:钱包接口对接
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -8,6 +9,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class AccountAuthenticationDTO {
|
public class AccountAuthenticationDTO {
|
||||||
|
|
||||||
private Integer accountStatus;
|
private Integer accountStatus;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class AccountInfoDTO {
|
public class AccountInfoDTO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "结算卡业务类型 枚举值:1:对公 2:对私", required = true)
|
@ApiModelProperty(value = "结算卡业务类型 枚举值:1:对公 2:对私", required = true)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -8,6 +9,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class AccountNoDTO {
|
public class AccountNoDTO {
|
||||||
|
|
||||||
private String accountNo;
|
private String accountNo;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -8,6 +9,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class AccountVerifyDTO {
|
public class AccountVerifyDTO {
|
||||||
|
|
||||||
private String outStoreId;
|
private String outStoreId;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -8,6 +9,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class AddTagDTO {
|
public class AddTagDTO {
|
||||||
|
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class BankDTO {
|
public class BankDTO {
|
||||||
|
|
||||||
@ApiModelProperty("银行编号")
|
@ApiModelProperty("银行编号")
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
import com.cool.store.request.wallet.WalletBasicPageInfo;
|
import com.cool.store.request.wallet.WalletBasicPageInfo;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -11,6 +12,7 @@ import java.util.List;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class BankListDTO {
|
public class BankListDTO {
|
||||||
|
|
||||||
WalletBasicPageInfo page;
|
WalletBasicPageInfo page;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -8,6 +9,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class BillDetailDTO {
|
public class BillDetailDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -8,6 +9,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class BillPageDTO {
|
public class BillPageDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class CompanyDTO {
|
public class CompanyDTO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "公司编号")
|
@ApiModelProperty(value = "公司编号")
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
import com.cool.store.request.wallet.WalletBasicPageInfo;
|
import com.cool.store.request.wallet.WalletBasicPageInfo;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -11,6 +12,7 @@ import java.util.List;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class CompanyListDTO {
|
public class CompanyListDTO {
|
||||||
|
|
||||||
private List<CompanyDTO> pageData;
|
private List<CompanyDTO> pageData;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class LargePaymentDTO {
|
public class LargePaymentDTO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "外部门店唯一标识", required = true)
|
@ApiModelProperty(value = "外部门店唯一标识", required = true)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -12,6 +13,7 @@ import java.util.List;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class PaymentDTO {
|
public class PaymentDTO {
|
||||||
|
|
||||||
@ApiModelProperty(name = "外部门店唯一标识", required = true)
|
@ApiModelProperty(name = "外部门店唯一标识", required = true)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class PaymentDetailDTO {
|
public class PaymentDetailDTO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "打款金额", required = true)
|
@ApiModelProperty(value = "打款金额", required = true)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class StoreAccountDTO {
|
public class StoreAccountDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class TransferDTO {
|
public class TransferDTO {
|
||||||
|
|
||||||
@ApiModelProperty(value="业务系统付款单号(如 CRM 单号)",required = true)
|
@ApiModelProperty(value="业务系统付款单号(如 CRM 单号)",required = true)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.dto.wallet;
|
package com.cool.store.dto.wallet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -9,6 +10,7 @@ import lombok.Data;
|
|||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class WithDrawerDTO {
|
public class WithDrawerDTO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "门店ID",required = true)
|
@ApiModelProperty(value = "门店ID",required = true)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.cool.store.request.wallet;
|
package com.cool.store.request.wallet;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description 门店签约账户转账提现查询接口
|
* @Description 门店签约账户转账提现查询接口
|
||||||
@@ -8,6 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
* @Date 2025/11/14 10:05
|
* @Date 2025/11/14 10:05
|
||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
public class BillDetailRequest {
|
public class BillDetailRequest {
|
||||||
|
|
||||||
@ApiModelProperty(value = "转账交易Id(转账交易编号二选一)")
|
@ApiModelProperty(value = "转账交易Id(转账交易编号二选一)")
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class CreateStoreAndAccountRequest {
|
|||||||
@ApiModelProperty(name = "账户简称", required = true)
|
@ApiModelProperty(name = "账户简称", required = true)
|
||||||
private String accountAliasName;
|
private String accountAliasName;
|
||||||
@ApiModelProperty(name = "结算银行卡号", required = true)
|
@ApiModelProperty(name = "结算银行卡号", required = true)
|
||||||
private String accountCardno;
|
private String accountCardNo;
|
||||||
@ApiModelProperty(name = "结算卡银行预留手机号", required = true)
|
@ApiModelProperty(name = "结算卡银行预留手机号", required = true)
|
||||||
private String accountPhone;
|
private String accountPhone;
|
||||||
@ApiModelProperty(name = "支行编号", required = true)
|
@ApiModelProperty(name = "支行编号", required = true)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class UpdateStoreAccountRequest {
|
|||||||
@ApiModelProperty(name = "签约人姓名(对私结算卡必传)以上二选一",required = true)
|
@ApiModelProperty(name = "签约人姓名(对私结算卡必传)以上二选一",required = true)
|
||||||
private String accountName;
|
private String accountName;
|
||||||
@ApiModelProperty(name = "结算银行卡号",required = true)
|
@ApiModelProperty(name = "结算银行卡号",required = true)
|
||||||
private String accountCardno;
|
private String accountCardNo;
|
||||||
@ApiModelProperty(name = "结算卡银行预留手机号。",required = true)
|
@ApiModelProperty(name = "结算卡银行预留手机号。",required = true)
|
||||||
private String accountPhone;
|
private String accountPhone;
|
||||||
@ApiModelProperty(name = "支行编号",required = true)
|
@ApiModelProperty(name = "支行编号",required = true)
|
||||||
|
|||||||
@@ -69,13 +69,13 @@ public class WalletServiceImpl implements WalletService {
|
|||||||
.legalName(request.getUserName())
|
.legalName(request.getUserName())
|
||||||
.legalNo(request.getIdCardNo())
|
.legalNo(request.getIdCardNo())
|
||||||
.accountAliasName(request.getUserName() + "_" + shopInfo.getStoreId())
|
.accountAliasName(request.getUserName() + "_" + shopInfo.getStoreId())
|
||||||
.accountCardno(request.getBankNumber())
|
.accountCardNo(request.getBankNumber())
|
||||||
.accountPhone(request.getBankMobile())
|
.accountPhone(request.getBankMobile())
|
||||||
.bankNo(request.getBankNo())
|
.bankNo(request.getBankNo())
|
||||||
.bankName(request.getBankName())
|
.bankName(request.getBankName())
|
||||||
.build();
|
.build();
|
||||||
StoreAccountDTO storeAndAccount = walletApiService.createStoreAndAccount(accountRequest);
|
StoreAccountDTO storeAndAccount = walletApiService.createStoreAndAccount(accountRequest);
|
||||||
return StringUtils.isNotBlank(storeAndAccount.getAccountId());
|
return StringUtils.isNotBlank(storeAndAccount.getAccountNo());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user