feat:existPassword

This commit is contained in:
苏竹红
2025-11-27 20:28:51 +08:00
parent 85761cef63
commit 2531761830
2 changed files with 13 additions and 1 deletions

View File

@@ -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,9 +10,13 @@ import lombok.Data;
* @Version 1.0 * @Version 1.0
*/ */
@Data @Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PasswordDTO { public class PasswordDTO {
@ApiModelProperty(value = "密码是否已存在 1.存在 2.不存在", required = true) @ApiModelProperty(value = "密码是否已存在 1.存在 2.不存在", required = true)
private Integer isExist; private Integer isExist;
@ApiModelProperty(value = "是否已存在账户 1.存在 2.不存在", required = true)
private Boolean isExistAccount;
} }

View File

@@ -378,7 +378,14 @@ public class WalletServiceImpl implements WalletService {
@Override @Override
public PasswordDTO existPassword(OutStoreIdRequest request) { public PasswordDTO existPassword(OutStoreIdRequest request) {
return walletApiService.passwordIsExist( request); PasswordDTO passwordDTO = walletApiService.passwordIsExist(request);
List<AccountInfoDTO> list = walletApiService.getAccountInfo(request);
Boolean isExistAccount = false;
if (CollectionUtils.isNotEmpty( list)){
isExistAccount = Boolean.TRUE;
}
passwordDTO.setIsExistAccount(isExistAccount);
return passwordDTO;
} }
@Override @Override