This commit is contained in:
shuhongfan
2023-09-04 16:40:17 +08:00
commit cf5ac25c14
8267 changed files with 1305066 additions and 0 deletions

3
sl-express-ms-user-domain/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.idea
target/
*.iml

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.sl-express</groupId>
<artifactId>sl-express-parent</artifactId>
<version>1.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<version>1.1-SNAPSHOT</version>
<groupId>com.sl-express.ms.user</groupId>
<artifactId>sl-express-ms-user-domain</artifactId>
<description>用户微服务-实体</description>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,87 @@
package com.sl.ms.user.domain.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 地址簿DTO
*/
@Data
public class AddressBookDTO {
private Long id;
/**
* 用户id
*/
@ApiModelProperty("用户id")
private Long userId;
/**
* 名字
*/
@ApiModelProperty("名字")
private String name;
/**
* 手机号
*/
@ApiModelProperty("手机号")
private String phoneNumber;
/**
* 分机号
*/
@ApiModelProperty("分机号")
private String extensionNumber;
/**
* 省id
*/
@ApiModelProperty("省ID")
private Long provinceId;
/**
* 市id
*/
@ApiModelProperty("市ID")
private Long cityId;
/**
* 区域id
*/
@ApiModelProperty("区ID")
private Long countyId;
/**
* 详细地址
*/
@ApiModelProperty("详细地址")
private String address;
/**
* 公司名称
*/
@ApiModelProperty("公司名称")
private String companyName;
/**
* 是否默认 1默认
*/
@ApiModelProperty("是否默认 1默认")
private Integer isDefault;
/**
* 创建时间
*/
@ApiModelProperty("创建时间")
private LocalDateTime created;
/**
* 更新时间
*/
@ApiModelProperty("更新时间")
private LocalDateTime updated;
/**
* 是否展示 1默认
*/
private Integer isShow;
/**
* 地址簿类型 1寄件 2收件
*/
private Integer type;
}

View File

@@ -0,0 +1,56 @@
package com.sl.ms.user.domain.dto;
import lombok.*;
import java.time.LocalDateTime;
/**
* 用户信息DTO
*/
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
public class MemberDTO {
private Long id;
/**
* 认证id
*/
private String authId;
/**
* 身份证号
*/
private String idCardNo;
/**
* 身份证号是否认证 1认证
*/
private Integer idCardNoVerify;
/**
* 手机号
*/
private String phone;
/**
* 姓名
*/
private String name;
private String avatar;
private String openId;
/**
* 性别
*/
private Integer sex;
/**
* 生日
*/
private String birthday;
private LocalDateTime created;
private LocalDateTime updated;
}

View File

@@ -0,0 +1,49 @@
package com.sl.ms.user.domain.enums;
import cn.hutool.core.util.EnumUtil;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* 地址薄展示状态
*/
public enum AddressBookShowStatus {
/**
* 展示
*/
SHOW_STATUS(1, "展示"),
/**
* 不展示
*/
NOT_SHOW_STATUS(0, "不展示");
AddressBookShowStatus(Integer code, String value) {
this.code = code;
this.value = value;
}
/**
* 类型编码
*/
@JsonValue
private final Integer code;
/**
* 类型值
*/
private final String value;
public Integer getCode() {
return code;
}
public String getValue() {
return value;
}
public static AddressBookShowStatus codeOf(Integer code) {
return EnumUtil.getBy(AddressBookShowStatus::getCode, code);
}
}

View File

@@ -0,0 +1,49 @@
package com.sl.ms.user.domain.enums;
import cn.hutool.core.util.EnumUtil;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* 地址薄类型
*/
public enum AddressBookType {
/**
* 寄件
*/
SEND(1, "寄件"),
/**
* 收件
*/
RECEIPT(2, "收件");
AddressBookType(Integer code, String value) {
this.code = code;
this.value = value;
}
/**
* 类型编码
*/
@JsonValue
private final Integer code;
/**
* 类型值
*/
private final String value;
public Integer getCode() {
return code;
}
public String getValue() {
return value;
}
public static AddressBookType codeOf(Integer code) {
return EnumUtil.getBy(AddressBookType::getCode, code);
}
}

View File

@@ -0,0 +1,78 @@
package com.sl.ms.user.domain.enums;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* 身份证号验证状态
*
* @author itcast
*/
public enum MemberIdCardVerifyStatus {
/**
* 未验证
*/
NONE(0, "未验证"),
/**
* 验证通过
*/
SUCCESS(1, "验证通过"),
/**
* 验证失败
*/
FAIL(2, "验证失败");
MemberIdCardVerifyStatus(Integer code, String value) {
this.code = code;
this.value = value;
}
/**
* 类型编码
*/
private final Integer code;
/**
* 类型值
*/
private final String value;
public Integer getCode() {
return code;
}
public String getValue() {
return value;
}
/**
* 循环变量
*/
private static final Map<Integer, MemberIdCardVerifyStatus> LOOKUP = new HashMap<>();
//静态初始化
static {
for (MemberIdCardVerifyStatus statusEnum : EnumSet.allOf(MemberIdCardVerifyStatus.class)) {
LOOKUP.put(statusEnum.code, statusEnum);
}
}
/**
* 根据code获取枚举项
*
* @param code 值
* @return 值
*/
public static MemberIdCardVerifyStatus lookup(Integer code) {
return LOOKUP.get(code);
}
}