|
|
@@ -1,16 +1,23 @@
|
|
|
package com.crm.ucard.controller;
|
|
|
|
|
|
import com.crm.rely.backend.core.constant.Constants;
|
|
|
-import com.crm.rely.backend.core.dto.base.*;
|
|
|
+import com.crm.rely.backend.core.dto.base.BaseReportResultDto;
|
|
|
+import com.crm.rely.backend.core.dto.base.BaseResultDto;
|
|
|
+import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
|
|
|
import com.crm.rely.backend.core.dto.ib.account.AccountDropdownDto;
|
|
|
import com.crm.rely.backend.core.dto.ib.account.AccountInfoDto;
|
|
|
+import com.crm.rely.backend.core.dto.system.reasons.refusal.SysReasonsRefusalSearchDto;
|
|
|
import com.crm.rely.backend.core.dto.ucard.*;
|
|
|
-import com.crm.rely.backend.core.dto.wasabi.*;
|
|
|
+import com.crm.rely.backend.core.dto.wasabi.WasabiActiveCardDto;
|
|
|
+import com.crm.rely.backend.core.dto.wasabi.WasabiBalanceInfoDto;
|
|
|
+import com.crm.rely.backend.core.dto.wasabi.WasabiOccupationsDto;
|
|
|
+import com.crm.rely.backend.core.dto.wasabi.WasabiUpdatePinDto;
|
|
|
import com.crm.rely.backend.core.entity.base.BaseEntity;
|
|
|
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
|
|
|
import com.crm.rely.backend.core.entity.custom.info.InfoEntity;
|
|
|
import com.crm.rely.backend.core.entity.custom.kyc.WebsdkLinkAliEntity;
|
|
|
import com.crm.rely.backend.core.entity.ib.account.AccountInfoListEntity;
|
|
|
+import com.crm.rely.backend.core.entity.system.reasons.refusal.SysReasonsRefusalSearchEntity;
|
|
|
import com.crm.rely.backend.core.entity.ucard.*;
|
|
|
import com.crm.rely.backend.core.entity.wasabi.*;
|
|
|
import com.crm.rely.backend.exception.ServiceException;
|
|
|
@@ -27,6 +34,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
@@ -34,34 +42,56 @@ import java.util.List;
|
|
|
public class WasabiCardApiController {
|
|
|
|
|
|
@Autowired
|
|
|
- private UcardApiService ucardApiService;
|
|
|
- @Autowired
|
|
|
- private UcardService ucardService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private WasabiCardService wasabiCardService;
|
|
|
-
|
|
|
+ private UcardCardService ucardCardService;
|
|
|
@Autowired
|
|
|
private CustomInfoService customInfoService;
|
|
|
@Autowired
|
|
|
private AccountInfoFeignService accountInfoFeignService;
|
|
|
+ @Autowired
|
|
|
+ private WasabiDocumentApiService wasabiDocumentApiService;
|
|
|
+ @Autowired
|
|
|
+ private UcardPermissionService ucardPermissionService;
|
|
|
+ @Autowired
|
|
|
+ private KycService kycService;
|
|
|
+ @Autowired
|
|
|
+ private UcardFileService ucardFileService;
|
|
|
+ @Autowired
|
|
|
+ private UcardTypeConfigService ucardTypeConfigService;
|
|
|
+ @Autowired
|
|
|
+ private UcardEmailService ucardEmailService;
|
|
|
+ @Autowired
|
|
|
+ private GlobalService globalService;
|
|
|
+ @Autowired
|
|
|
+ private UcardBlockchainService ucardBlockchainService;
|
|
|
+ @Autowired
|
|
|
+ private VaultodyService vaultodyService;
|
|
|
+ @Autowired
|
|
|
+ private SysReasonsRefusalService sysReasonsRefusalService;
|
|
|
+ @Autowired
|
|
|
+ private UcardAppVersionService ucardAppVersionService;
|
|
|
+ @Autowired
|
|
|
+ private UcardAppCommonProblemService ucardAppCommonProblemService;
|
|
|
+ @Autowired
|
|
|
+ private UcardAppPrivacyPolicyService ucardAppPrivacyPolicyService;
|
|
|
+ @Autowired
|
|
|
+ private UcardAppCommonProblemTypeService ucardAppCommonProblemTypeService;
|
|
|
|
|
|
/**
|
|
|
* 获取卡片类型列表
|
|
|
*/
|
|
|
@PostMapping("/card/types/page")
|
|
|
- public ResultWithPagerDto<CardTypeDto> getCardTypePageList(@RequestBody CardTypePageEntity entity) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<CardTypeDto> getCardTypePageList(@RequestBody CardTypePageEntity entity) throws Exception {
|
|
|
entity.setEnableStatus(1);
|
|
|
- return ucardService.getCardTypePageList(entity);
|
|
|
+ return ucardCardService.getCardTypePageList(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取卡片类型
|
|
|
*/
|
|
|
@PostMapping("/card/types/list")
|
|
|
- public BaseResultDto getCardTypeList(@RequestBody CardTypeEntity entity, InfoEntity infoEntity) throws ServiceException {
|
|
|
+ public BaseResultDto getCardTypeList(@RequestBody CardTypeEntity entity, InfoEntity infoEntity) throws Exception {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return BaseResultDto.success(wasabiCardService.getCardTypeList(entity));
|
|
|
+ return BaseResultDto.success(ucardCardService.getCardTypeList(entity));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -72,7 +102,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/getWebsdkLink")
|
|
|
public BaseResultDto getWebsdkLink(@RequestBody WebsdkLinkAliEntity entity, InfoEntity infoEntity) throws Exception {
|
|
|
- return wasabiCardService.getWebsdkLink(entity, infoEntity.getCustomInfo().getId());
|
|
|
+ return kycService.getWebsdkLink(entity, infoEntity.getCustomInfo().getId());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -86,7 +116,7 @@ public class WasabiCardApiController {
|
|
|
request.setCustomId(entity.getCustomInfo().getId());
|
|
|
request.setCId(entity.getCustomInfo().getCId());
|
|
|
request.setOperateUser(entity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.registerMerchantUser(request);
|
|
|
+ return ucardCardService.registerMerchantUser(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -98,7 +128,7 @@ public class WasabiCardApiController {
|
|
|
request.setCustomId(entity.getCustomInfo().getId());
|
|
|
request.setCId(entity.getCustomInfo().getCId());
|
|
|
request.setOperateUser(entity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.updateMerchantUser(request);
|
|
|
+ return ucardCardService.updateMerchantUser(request);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -107,7 +137,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/merchant/user/address/update")
|
|
|
public BaseResultDto updateUserMailingAddress(@RequestBody WasabiSaveUserMailingAddressEntity request) throws ServiceException {
|
|
|
- return wasabiCardService.updateUserMailingAddress(request);
|
|
|
+ return ucardCardService.updateUserMailingAddress(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -123,7 +153,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/merchant/user/single")
|
|
|
public BaseResultDto merchantUserSingle(InfoEntity infoEntity) throws Exception {
|
|
|
- return wasabiCardService.merchantUserSingle(infoEntity.getCustomInfo().getId());
|
|
|
+ return ucardCardService.merchantUserSingle(infoEntity.getCustomInfo().getId());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -131,7 +161,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/merchant/kyc/page")
|
|
|
ResultWithPagerDto<CardKycStatusDto> getKycPageList(@RequestBody CardKycStatusPageEntity entity) throws ServiceException {
|
|
|
- return ucardService.getKycPageList(entity);
|
|
|
+ return kycService.getKycPageList(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -140,7 +170,7 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/card/apply")
|
|
|
public BaseResultDto applyCard(@RequestBody CardApplyEntity request, InfoEntity infoEntity) throws Exception {
|
|
|
request.setCId(infoEntity.getCustomInfo().getId());
|
|
|
- return wasabiCardService.applyCard(request);
|
|
|
+ return ucardCardService.applyCard(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -148,7 +178,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/apply/progress")
|
|
|
public BaseResultDto queryApplyProgress(@RequestBody CardApplyProgressEntity request) throws Exception {
|
|
|
- return wasabiCardService.queryApplyProgress(request);
|
|
|
+ return ucardCardService.queryApplyProgress(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -156,7 +186,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/apply/page")
|
|
|
public ResultWithPagerDto<CardApplyDto> getCardApplyPageList(@RequestBody CardApplyPageEntity entity) throws ServiceException {
|
|
|
- return ucardService.getCardApplyPageList(entity);
|
|
|
+ return ucardCardService.getCardApplyPageList(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -164,7 +194,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/apply/details")
|
|
|
public BaseResultDto cardApplyDetails(@RequestBody BaseEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.cardApplyDetails(entity);
|
|
|
+ return ucardCardService.cardApplyDetails(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -173,7 +203,7 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/card/list")
|
|
|
public BaseResultDto getCardList(@RequestBody CardPageEntity entity, InfoEntity infoEntity) throws ServiceException {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return BaseResultDto.success(ucardApiService.getCardList(entity));
|
|
|
+ return BaseResultDto.success(ucardCardService.getCardList(entity));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -181,7 +211,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/single")
|
|
|
public BaseResultDto getCardSingle(@RequestBody SingleLongEntity entity) throws ServiceException {
|
|
|
- return BaseResultDto.success(ucardApiService.getCardSingle(entity));
|
|
|
+ return BaseResultDto.success(ucardCardService.getCardSingle(entity));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -189,18 +219,18 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/activate")
|
|
|
public BaseResultDto<WasabiActiveCardDto> activateCard(@RequestBody WasabiActiveCardEntity request,
|
|
|
- InfoEntity infoEntity) throws ServiceException {
|
|
|
+ InfoEntity infoEntity) throws Exception {
|
|
|
request.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.activeCard(request);
|
|
|
+ return ucardCardService.activeCard(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 银行卡充值
|
|
|
*/
|
|
|
@PostMapping("/card/recharge")
|
|
|
- public BaseResultDto rechargeCard(@RequestBody WasabiBalanceEntity request, InfoEntity infoEntity) throws ServiceException {
|
|
|
+ public BaseResultDto rechargeCard(@RequestBody WasabiBalanceEntity request, InfoEntity infoEntity) throws Exception {
|
|
|
request.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.cardDeposit(request);
|
|
|
+ return ucardCardService.cardDeposit(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -210,7 +240,7 @@ public class WasabiCardApiController {
|
|
|
public BaseResultDto<WalletBalanceDto> walletBalance(@RequestBody WalletBalanceEntity request,
|
|
|
InfoEntity infoEntity) throws ServiceException {
|
|
|
request.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.walletBalance(request);
|
|
|
+ return ucardCardService.walletBalance(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -219,7 +249,7 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/card/wallet/record/page")
|
|
|
public ResultWithPagerDto<CardWalletRecordDto> getCardWalletRecordPageList(@RequestBody CardWalletRecordPageEntity entity, InfoEntity infoEntity) throws ServiceException {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.getCardWalletRecordPageList(entity);
|
|
|
+ return ucardCardService.getCardWalletRecordPageList(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -227,7 +257,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/recharge/page")
|
|
|
public BaseReportResultDto<List<CardRechargeOrderDto>, CardRechargeOrderSumDto> queryRechargePageList(@RequestBody CardRechargePageEntity request) throws ServiceException {
|
|
|
- return ucardService.queryRechargePageList(request);
|
|
|
+ return ucardCardService.queryRechargePageList(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -235,7 +265,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/balance")
|
|
|
public BaseResultDto<WasabiBalanceInfoDto> queryCardBalance(@RequestBody WasabiBalanceInfoEntity request) throws ServiceException {
|
|
|
- return wasabiCardService.getBalanceInfo(request);
|
|
|
+ return ucardCardService.getBalanceInfo(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -243,7 +273,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/recharge/order")
|
|
|
public BaseResultDto queryRechargeOrder(@RequestBody CardRechargeOrderQueryEntity request) throws Exception {
|
|
|
- return wasabiCardService.queryDepositOrder(request);
|
|
|
+ return ucardCardService.queryDepositOrder(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -251,9 +281,9 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/password/reset")
|
|
|
public BaseResultDto<WasabiUpdatePinDto> resetPassword(@RequestBody WasabiUpdatePinEntity entity,
|
|
|
- InfoEntity infoEntity) throws ServiceException {
|
|
|
+ InfoEntity infoEntity) throws Exception {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.updatePin(entity);
|
|
|
+ return ucardCardService.updatePin(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -262,7 +292,7 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/card/freeze")
|
|
|
public BaseResultDto freezeCard(@RequestBody WasabiFreezeAndUnfreezeEntity request, InfoEntity infoEntity) throws Exception {
|
|
|
request.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.cardFreeze(request);
|
|
|
+ return ucardCardService.cardFreeze(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -271,7 +301,7 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/card/unfreeze")
|
|
|
public BaseResultDto unfreezeCard(@RequestBody WasabiFreezeAndUnfreezeEntity request, InfoEntity infoEntity) throws Exception {
|
|
|
request.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.cardUnfreeze(request);
|
|
|
+ return ucardCardService.cardUnfreeze(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -279,7 +309,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/transac/page")
|
|
|
public ResultWithPagerDto<CardTransacOrderDto> getTransactionPageList(@RequestBody CardTransacOrderPageEntity request) throws ServiceException {
|
|
|
- return ucardService.getTransacOrderPageList(request);
|
|
|
+ return ucardCardService.getTransacOrderPageList(request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -287,7 +317,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/transac/single")
|
|
|
public BaseResultDto getTransactionSingle(@RequestBody SingleLongEntity entity) throws ServiceException {
|
|
|
- return BaseResultDto.success(ucardApiService.getTransactionSingle(entity));
|
|
|
+ return BaseResultDto.success(ucardCardService.getTransactionSingle(entity));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -296,8 +326,8 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/upload/file")
|
|
|
public BaseResultDto uploadFile(@RequestParam(value = "file") MultipartFile file) throws Exception {
|
|
|
String middlePath = "/wasabi";
|
|
|
- wasabiCardService.validatedFile(file);
|
|
|
- String path = wasabiCardService.commonUpload(file, middlePath);
|
|
|
+ wasabiDocumentApiService.validatedFile(file);
|
|
|
+ String path = ucardFileService.commonUpload(file, middlePath);
|
|
|
return BaseResultDto.success(Constants.UPLOAD_SUCCESS, path);
|
|
|
}
|
|
|
|
|
|
@@ -307,7 +337,7 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/card/country")
|
|
|
public BaseResultDto getCardCountry(@RequestBody CardCountryEntity request) throws ServiceException {
|
|
|
request.setCardCategory(2);
|
|
|
- return BaseResultDto.success(ucardService.getCardCountryList(request));
|
|
|
+ return BaseResultDto.success(ucardCardService.getCardCountryList(request));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -315,7 +345,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/occupation/list")
|
|
|
public BaseResultDto<List<WasabiOccupationsDto>> getOccupationList() throws ServiceException {
|
|
|
- return wasabiCardService.getOccupationList();
|
|
|
+ return ucardCardService.getOccupationList();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -323,15 +353,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/permission/verify")
|
|
|
public BaseResultDto permissionVerify(InfoEntity infoEntity) throws ServiceException {
|
|
|
- return wasabiCardService.permissionVerify(infoEntity.getCustomInfo());
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 扫码上传文件
|
|
|
- */
|
|
|
- @PostMapping("/scan/upload/file")
|
|
|
- public BaseResultDto scanUpload(@RequestBody CardWebSocketEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.scanUpload(entity);
|
|
|
+ return ucardPermissionService.permissionVerify(infoEntity.getCustomInfo());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -339,7 +361,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/id/type/config/list")
|
|
|
public ResultWithPagerDto<CardIdTypeConfigDto> getCardIdTypeConfigList(@RequestBody CardIdTypeConfigPageEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.getCardIdTypeConfigList(entity);
|
|
|
+ return ucardTypeConfigService.getCardIdTypeConfigList(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -347,19 +369,19 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/global/query/bank/cities")
|
|
|
public BaseResultDto queryBankCities(@RequestBody CardBankCitiesEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.queryBankCities(entity);
|
|
|
+ return globalService.queryBankCities(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询CVV 发送短信验证码
|
|
|
*/
|
|
|
@PostMapping("/query/cvv/send/code")
|
|
|
- public BaseResultDto queryCvvSendCode(@RequestBody @Validated CardQueryCvvSendEmailCodeEntity entity,
|
|
|
+ public BaseResultDto queryCvvSendCode(@RequestBody @Validated CardSendEmailCodeEntity entity,
|
|
|
HttpServletRequest req) throws ServiceException {
|
|
|
|
|
|
entity.setIp(GetIpAndMac.getIp(req));
|
|
|
entity.setTime(new Date());
|
|
|
- wasabiCardService.queryCvvSendCode(entity);
|
|
|
+ ucardEmailService.queryCvvSendCode(entity);
|
|
|
return BaseResultDto.success(Constants.SEND_SUCCESS);
|
|
|
}
|
|
|
|
|
|
@@ -368,7 +390,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/query/cvv/verify/code")
|
|
|
public BaseResultDto queryCvvVerifyCode(@RequestBody @Validated CardQueryCvvVerifyEmailCodeEntity entity) throws Exception {
|
|
|
- return wasabiCardService.queryCvvVerifyCode(entity);
|
|
|
+ return ucardEmailService.queryCvvVerifyCode(entity);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/account/dropdown")
|
|
|
@@ -396,18 +418,18 @@ public class WasabiCardApiController {
|
|
|
* 查询汇率
|
|
|
*/
|
|
|
@PostMapping("/global/query/exchange/rate")
|
|
|
- public BaseResultDto queryExchangeRate(@RequestBody GlobalQueryExchangeRateEntity entity) throws ServiceException {
|
|
|
- return BaseResultDto.success(wasabiCardService.queryExchangeRate(entity));
|
|
|
+ public BaseResultDto queryExchangeRate(@RequestBody GlobalQueryExchangeRateEntity entity) throws Exception {
|
|
|
+ return BaseResultDto.success(globalService.queryExchangeRate(entity));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询账户信息
|
|
|
*/
|
|
|
@PostMapping("/card/account/dropdown")
|
|
|
- public BaseResultDto cardAccountDropdown(InfoEntity infoEntity) throws ServiceException {
|
|
|
+ public BaseResultDto cardAccountDropdown(InfoEntity infoEntity) throws Exception {
|
|
|
CardAccountDropdownEntity entity = new CardAccountDropdownEntity();
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.cardAccountDropdown(entity);
|
|
|
+ return ucardCardService.cardAccountDropdown(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -416,16 +438,16 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/global/create/order")
|
|
|
public BaseResultDto globalCreateOrder(@RequestBody GlobalCreateOrderEntity entity, InfoEntity infoEntity) throws Exception {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.globalCreateOrder(entity);
|
|
|
+ return globalService.globalCreateOrder(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 速汇订单分页列表
|
|
|
*/
|
|
|
@PostMapping("/global/order/page/list")
|
|
|
- public ResultWithPagerDto<GlobalOrderDto> globalOrderPageList(@RequestBody GlobalOrderPageEntity entity, InfoEntity infoEntity) throws Exception {
|
|
|
+ public BaseReportResultDto<List<GlobalOrderDto>, GlobalOrderSumDto> globalOrderPageList(@RequestBody GlobalOrderPageEntity entity, InfoEntity infoEntity) throws Exception {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.globalOrderPageList(entity);
|
|
|
+ return globalService.globalOrderPageList(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -434,7 +456,7 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/global/supplementary/data")
|
|
|
public BaseResultDto supplementaryData(@RequestBody WasabiTransactionSubmitRfiEntity entity, InfoEntity infoEntity) throws Exception {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.supplementaryData(entity);
|
|
|
+ return globalService.supplementaryData(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -442,7 +464,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/global/currencies/dropdown")
|
|
|
public BaseResultDto getCurrenciesDropdown(@RequestBody GlobalCurrenciesDropdownEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.getCurrenciesDropdown(entity);
|
|
|
+ return globalService.getCurrenciesDropdown(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -450,7 +472,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/global/currencies/field/list")
|
|
|
public BaseResultDto getCurrenciesFieldList(@RequestBody @Validated GlobalCurrenciesFieldListEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.getCurrenciesFieldList(entity);
|
|
|
+ return globalService.getCurrenciesFieldList(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -458,7 +480,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/global/order/details")
|
|
|
public BaseResultDto queryGlobalOrderDetails(@RequestBody BaseEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.queryGlobalOrderDetails(entity);
|
|
|
+ return globalService.queryGlobalOrderDetails(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -467,7 +489,7 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/global/cancel/order")
|
|
|
public BaseResultDto globalCancelOrder(@RequestBody GlobalCancelOrderEntity entity, InfoEntity infoEntity) throws Exception {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.globalCancelOrder(entity);
|
|
|
+ return globalService.globalCancelOrder(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -475,7 +497,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/global/user/details")
|
|
|
public BaseResultDto findGlobalUserDetails(InfoEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.findGlobalUserDetails(entity);
|
|
|
+ return globalService.findGlobalUserDetails(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -483,7 +505,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/global/receiver/user/list")
|
|
|
BaseResultDto getGlobalReceiverUserList(@RequestBody GlobalReceiverUserEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.getGlobalReceiverUserList(entity);
|
|
|
+ return globalService.getGlobalReceiverUserList(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -491,7 +513,7 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/global/receiver/user/delete")
|
|
|
BaseResultDto deleteGlobalReceiverUser(@RequestBody BaseEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.deleteGlobalReceiverUser(entity);
|
|
|
+ return globalService.deleteGlobalReceiverUser(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -499,16 +521,16 @@ public class WasabiCardApiController {
|
|
|
*/
|
|
|
@PostMapping("/card/blockchain/config/dropdown")
|
|
|
BaseResultDto getCardBlockchainConfigDropdown(@RequestBody CardBlockchainConfigDropdownEntity entity) throws ServiceException {
|
|
|
- return wasabiCardService.getCardBlockchainConfigDropdown(entity);
|
|
|
+ return ucardBlockchainService.getCardBlockchainConfigDropdown(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 加密货币交易分页列表
|
|
|
*/
|
|
|
@PostMapping("/encrypted/wallet/transaction/page")
|
|
|
- ResultWithPagerDto<EncryptedWalletTransactionDto> getEncryptedWalletTransactionPage(@RequestBody EncryptedWalletTransactionPageEntity entity, InfoEntity infoEntity) throws ServiceException {
|
|
|
+ ResultWithPagerDto<UcardWalletDepositTransactionDto> getWalletDepositTransactionPage(@RequestBody UcardWalletDepositTransactionPageEntity entity, InfoEntity infoEntity) throws ServiceException {
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.getEncryptedWalletTransactionPage(entity);
|
|
|
+ return vaultodyService.getWalletDepositTransactionPage(entity);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -517,7 +539,70 @@ public class WasabiCardApiController {
|
|
|
@PostMapping("/card/withdraw/page")
|
|
|
ResultWithPagerDto<CardWithdrawDto> queryCardWithdrawPage(@RequestBody CardWithdrawPageEntity entity, InfoEntity infoEntity) throws ServiceException{
|
|
|
entity.setCId(infoEntity.getCustomInfo().getCId());
|
|
|
- return wasabiCardService.queryCardWithdrawPage(entity);
|
|
|
+ return ucardCardService.queryCardWithdrawPage(entity);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 拒绝理由单个查询
|
|
|
+ *
|
|
|
+ * @param entity
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ @PostMapping("/reasons/refusal/search/single")
|
|
|
+ public BaseResultDto searchLingle(@RequestBody @Validated SingleLongEntity entity) throws Exception {
|
|
|
+
|
|
|
+ SysReasonsRefusalSearchDto result = sysReasonsRefusalService.searchSingle(entity);
|
|
|
+
|
|
|
+ return BaseResultDto.success(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/reasons/refusal/list")
|
|
|
+ public BaseResultDto list(@RequestBody @Validated SysReasonsRefusalSearchEntity entity) throws Exception {
|
|
|
+
|
|
|
+ BaseResultDto<Map<String, SysReasonsRefusalSearchDto>> result = sysReasonsRefusalService.searchList(entity);
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 币种所有字段名称
|
|
|
+ */
|
|
|
+ @PostMapping("/global/field/params")
|
|
|
+ public BaseResultDto getGlobalFieldParams() throws ServiceException {
|
|
|
+ return globalService.getGlobalFieldParams();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取最新一条app版本配置
|
|
|
+ */
|
|
|
+ @PostMapping("/card/app/version/detail")
|
|
|
+ public BaseResultDto getLatestCardAppVersion(@RequestBody @Validated CardAppVersionDetailEntity entity) throws ServiceException {
|
|
|
+ return ucardAppVersionService.getLatestCardAppVersion(entity);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * app常见问题列表
|
|
|
+ */
|
|
|
+ @PostMapping("/card/app/common/problem/page")
|
|
|
+ ResultWithPagerDto<CardAppCommonProblemDto> getCardAppCommonProblemPageList(@RequestBody CardAppCommonProblemPageEntity entity) throws ServiceException{
|
|
|
+ return ucardAppCommonProblemService.getCardAppCommonProblemPageList(entity);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * app隐私政策列表
|
|
|
+ */
|
|
|
+ @PostMapping("/card/app/privacy/policy/page")
|
|
|
+ ResultWithPagerDto<CardAppPrivacyPolicyDto> getCardAppPrivacyPolicyPageList(@RequestBody CardAppPrivacyPolicyPageEntity entity) throws ServiceException{
|
|
|
+ return ucardAppPrivacyPolicyService.getCardAppPrivacyPolicyPageList(entity);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 常见问题类型下拉列表
|
|
|
+ */
|
|
|
+ @PostMapping("/card/app/common/problem/type/dropdown")
|
|
|
+ BaseResultDto cardAppCommonProblemTypeDropdown(@RequestBody @Validated CardAppCommonProblemTypeDropdown entity) throws ServiceException{
|
|
|
+ return ucardAppCommonProblemTypeService.cardAppCommonProblemTypeDropdown(entity);
|
|
|
}
|
|
|
|
|
|
}
|