feat:existPassword
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 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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user