后端:去除 user 模块的 setting getting 方法

This commit is contained in:
YunaiV 2019-04-06 22:15:30 +08:00
parent 0e26b22e39
commit 1513ca33a7
30 changed files with 191 additions and 1167 deletions

View File

@ -26,13 +26,27 @@
<artifactId>user-service-impl</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>common-framework</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>admin-sdk</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
@ -47,62 +61,26 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.5</version>
</dependency>
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>0.2.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher -->
<version>${org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>admin-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher -->
<version>${org.mapstruct.version}</version>
</dependency>
</dependencies>
@ -112,30 +90,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source> <!-- or higher, depending on your project -->
<target>1.8</target> <!-- or higher, depending on your project -->
<annotationProcessorPaths>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<!-- 打包 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
</project>
</project>

View File

@ -2,6 +2,8 @@ package cn.iocoder.mall.user.application.po;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@ -14,6 +16,8 @@ import java.io.Serializable;
* @time 2019-04-06 14:13
*/
@ApiModel("用户地址")
@Data
@Accessors(chain = true)
public class UserAddressAddPO implements Serializable {
/**
@ -43,49 +47,4 @@ public class UserAddressAddPO implements Serializable {
@Size(min = 10, max = 100, message = "地址在 10 ~ 100 字之间!")
private String address;
@Override
public String toString() {
return "UserAddressAddPO{" +
"areaNo='" + areaNo + '\'' +
", name='" + name + '\'' +
", mobile='" + mobile + '\'' +
", address='" + address + '\'' +
'}';
}
public String getAreaNo() {
return areaNo;
}
public UserAddressAddPO setAreaNo(String areaNo) {
this.areaNo = areaNo;
return this;
}
public String getName() {
return name;
}
public UserAddressAddPO setName(String name) {
this.name = name;
return this;
}
public String getMobile() {
return mobile;
}
public UserAddressAddPO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getAddress() {
return address;
}
public UserAddressAddPO setAddress(String address) {
this.address = address;
return this;
}
}

View File

@ -2,6 +2,8 @@ package cn.iocoder.mall.user.application.po;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@ -14,6 +16,8 @@ import java.io.Serializable;
* @time 2019-04-06 14:13
*/
@ApiModel("用户地址-更新")
@Data
@Accessors(chain = true)
public class UserAddressUpdatePO implements Serializable {
@ -50,59 +54,4 @@ public class UserAddressUpdatePO implements Serializable {
@Size(min = 10, max = 100, message = "地址在 10 ~ 100 字之间!")
private String address;
@Override
public String toString() {
return "UserAddressUpdatePO{" +
"id=" + id +
", areaNo='" + areaNo + '\'' +
", name='" + name + '\'' +
", mobile='" + mobile + '\'' +
", address='" + address + '\'' +
'}';
}
public Integer getId() {
return id;
}
public UserAddressUpdatePO setId(Integer id) {
this.id = id;
return this;
}
public String getAreaNo() {
return areaNo;
}
public UserAddressUpdatePO setAreaNo(String areaNo) {
this.areaNo = areaNo;
return this;
}
public String getName() {
return name;
}
public UserAddressUpdatePO setName(String name) {
this.name = name;
return this;
}
public String getMobile() {
return mobile;
}
public UserAddressUpdatePO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getAddress() {
return address;
}
public UserAddressUpdatePO setAddress(String address) {
this.address = address;
return this;
}
}

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.user.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@ApiModel("用户分页 VO")
@Data
@Accessors(chain = true)
public class AdminsUserPageVO {
@ApiModelProperty(value = "用户数组")
@ -13,22 +17,4 @@ public class AdminsUserPageVO {
@ApiModelProperty(value = "用户总数")
private Integer count;
public List<AdminsUserVO> getUsers() {
return users;
}
public AdminsUserPageVO setUsers(List<AdminsUserVO> users) {
this.users = users;
return this;
}
public Integer getCount() {
return count;
}
public AdminsUserPageVO setCount(Integer count) {
this.count = count;
return this;
}
}
}

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.user.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@ApiModel("用户 VO")
@Data
@Accessors(chain = true)
public class AdminsUserVO {
@ApiModelProperty(value = "用户编号", required = true, example = "1")
@ -21,58 +25,4 @@ public class AdminsUserVO {
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式")
private Date createTime;
public Integer getId() {
return id;
}
public AdminsUserVO setId(Integer id) {
this.id = id;
return this;
}
public String getMobile() {
return mobile;
}
public AdminsUserVO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getNickname() {
return nickname;
}
public AdminsUserVO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getAvatar() {
return avatar;
}
public AdminsUserVO setAvatar(String avatar) {
this.avatar = avatar;
return this;
}
public Integer getStatus() {
return status;
}
public AdminsUserVO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public AdminsUserVO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
}

View File

@ -2,8 +2,12 @@ package cn.iocoder.mall.user.application.vo.users;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
@ApiModel("手机注册结果 VO")
@Data
@Accessors(chain = true)
public class MobileRegisterVO {
@ApiModelProperty(value = "访问令牌", required = true, example = "2e3d7635c15e47e997611707a237859f")
@ -13,31 +17,4 @@ public class MobileRegisterVO {
@ApiModelProperty(value = "过期时间,单位:秒", required = true, example = "2879")
private Integer expiresIn;
public String getAccessToken() {
return accessToken;
}
public MobileRegisterVO setAccessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
public String getRefreshToken() {
return refreshToken;
}
public MobileRegisterVO setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
return this;
}
public Integer getExpiresIn() {
return expiresIn;
}
public MobileRegisterVO setExpiresIn(Integer expiresIn) {
this.expiresIn = expiresIn;
return this;
}
}
}

View File

@ -2,8 +2,12 @@ package cn.iocoder.mall.user.application.vo.users;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
@ApiModel("用户信息 VO")
@Data
@Accessors(chain = true)
public class UsersUserVO {
@ApiModelProperty(value = "用户编号", required = true, example = "123")
@ -15,40 +19,4 @@ public class UsersUserVO {
@ApiModelProperty(value = "头像", required = true, example = "http://www.iocoder.cn/xxx.jpg")
private String avatar;
public Integer getId() {
return id;
}
public UsersUserVO setId(Integer id) {
this.id = id;
return this;
}
public String getMobile() {
return mobile;
}
public UsersUserVO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getNickname() {
return nickname;
}
public UsersUserVO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getAvatar() {
return avatar;
}
public UsersUserVO setAvatar(String avatar) {
this.avatar = avatar;
return this;
}
}
}

View File

@ -11,6 +11,19 @@
<artifactId>user-sdk</artifactId>
<dependencies>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>common-framework</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
@ -29,31 +42,20 @@
<version>5.1.5.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>common-framework</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
</project>

View File

@ -16,7 +16,21 @@
<artifactId>common-framework</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher -->
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-jdk8</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>
</project>

View File

@ -1,7 +1,12 @@
package cn.iocoder.mall.user.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@Accessors(chain = true)
public class OAuth2AccessTokenBO implements Serializable {
/**
@ -17,31 +22,4 @@ public class OAuth2AccessTokenBO implements Serializable {
*/
private Integer expiresIn;
public String getAccessToken() {
return accessToken;
}
public OAuth2AccessTokenBO setAccessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
public String getRefreshToken() {
return refreshToken;
}
public OAuth2AccessTokenBO setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
return this;
}
public Integer getExpiresIn() {
return expiresIn;
}
public OAuth2AccessTokenBO setExpiresIn(Integer expiresIn) {
this.expiresIn = expiresIn;
return this;
}
}
}

View File

@ -1,7 +1,12 @@
package cn.iocoder.mall.user.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@Accessors(chain = true)
public class OAuth2AuthenticationBO implements Serializable {
/**
@ -9,13 +14,4 @@ public class OAuth2AuthenticationBO implements Serializable {
*/
private Integer userId;
public Integer getUserId() {
return userId;
}
public OAuth2AuthenticationBO setUserId(Integer userId) {
this.userId = userId;
return this;
}
}
}

View File

@ -1,9 +1,14 @@
package cn.iocoder.mall.user.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* @author Sin
* @time 2019-04-06 13:28
*/
@Data
@Accessors(chain = true)
public class UserAddressBO {
@ -32,69 +37,4 @@ public class UserAddressBO {
*/
private String address;
@Override
public String toString() {
return "UserAddressBO{" +
"id=" + id +
", userId=" + userId +
", areaNo='" + areaNo + '\'' +
", name='" + name + '\'' +
", mobile='" + mobile + '\'' +
", address='" + address + '\'' +
'}';
}
public Integer getId() {
return id;
}
public UserAddressBO setId(Integer id) {
this.id = id;
return this;
}
public Integer getUserId() {
return userId;
}
public UserAddressBO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public String getAreaNo() {
return areaNo;
}
public UserAddressBO setAreaNo(String areaNo) {
this.areaNo = areaNo;
return this;
}
public String getName() {
return name;
}
public UserAddressBO setName(String name) {
this.name = name;
return this;
}
public String getMobile() {
return mobile;
}
public UserAddressBO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getAddress() {
return address;
}
public UserAddressBO setAddress(String address) {
this.address = address;
return this;
}
}

View File

@ -1,5 +1,8 @@
package cn.iocoder.mall.user.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;
@ -9,6 +12,8 @@ import java.util.List;
* @author Sin
* @time 2019-04-06 13:56
*/
@Data
@Accessors(chain = true)
public class UserAddressPageBO implements Serializable {
/**
@ -20,29 +25,4 @@ public class UserAddressPageBO implements Serializable {
*/
private List<UserAddressBO> list;
@Override
public String toString() {
return "UserAddressPageBO{" +
"total=" + total +
", list=" + list +
'}';
}
public Integer getTotal() {
return total;
}
public UserAddressPageBO setTotal(Integer total) {
this.total = total;
return this;
}
public List<UserAddressBO> getList() {
return list;
}
public UserAddressPageBO setList(List<UserAddressBO> list) {
this.list = list;
return this;
}
}

View File

@ -1,7 +1,12 @@
package cn.iocoder.mall.user.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@Data
@Accessors(chain = true)
public class UserBO {
/**
@ -32,57 +37,4 @@ public class UserBO {
*/
private Date createTime;
public Integer getId() {
return id;
}
public UserBO setId(Integer id) {
this.id = id;
return this;
}
public String getMobile() {
return mobile;
}
public UserBO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getNickname() {
return nickname;
}
public UserBO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getAvatar() {
return avatar;
}
public UserBO setAvatar(String avatar) {
this.avatar = avatar;
return this;
}
public Integer getStatus() {
return status;
}
public UserBO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public UserBO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
}

View File

@ -1,7 +1,12 @@
package cn.iocoder.mall.user.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@Data
@Accessors(chain = true)
public class UserPageBO {
/**
@ -13,22 +18,4 @@ public class UserPageBO {
*/
private Integer count;
public List<UserBO> getUsers() {
return users;
}
public UserPageBO setUsers(List<UserBO> users) {
this.users = users;
return this;
}
public Integer getCount() {
return count;
}
public UserPageBO setCount(Integer count) {
this.count = count;
return this;
}
}
}

View File

@ -1,11 +1,16 @@
package cn.iocoder.mall.user.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* 用户访问日志添加 DTO
*/
@Data
@Accessors(chain = true)
public class UserAccessLogAddDTO {
/**
@ -56,76 +61,4 @@ public class UserAccessLogAddDTO {
@NotNull(message = "响应时长不能为空")
private Integer responseTime;
public Integer getUserId() {
return userId;
}
public UserAccessLogAddDTO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public String getUri() {
return uri;
}
public UserAccessLogAddDTO setUri(String uri) {
this.uri = uri;
return this;
}
public String getQueryString() {
return queryString;
}
public UserAccessLogAddDTO setQueryString(String queryString) {
this.queryString = queryString;
return this;
}
public String getMethod() {
return method;
}
public UserAccessLogAddDTO setMethod(String method) {
this.method = method;
return this;
}
public String getUserAgent() {
return userAgent;
}
public UserAccessLogAddDTO setUserAgent(String userAgent) {
this.userAgent = userAgent;
return this;
}
public String getIp() {
return ip;
}
public UserAccessLogAddDTO setIp(String ip) {
this.ip = ip;
return this;
}
public Date getStartTime() {
return startTime;
}
public UserAccessLogAddDTO setStartTime(Date startTime) {
this.startTime = startTime;
return this;
}
public Integer getResponseTime() {
return responseTime;
}
public UserAccessLogAddDTO setResponseTime(Integer responseTime) {
this.responseTime = responseTime;
return this;
}
}
}

View File

@ -1,5 +1,8 @@
package cn.iocoder.mall.user.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
@ -8,6 +11,8 @@ import java.io.Serializable;
* @author Sin
* @time 2019-04-06 13:25
*/
@Data
@Accessors(chain = true)
public class UserAddressAddDTO implements Serializable {
/**
@ -31,59 +36,4 @@ public class UserAddressAddDTO implements Serializable {
*/
private String address;
@Override
public String toString() {
return "UserAddressAddDTO{" +
"userId=" + userId +
", areaNo='" + areaNo + '\'' +
", name='" + name + '\'' +
", mobile='" + mobile + '\'' +
", address='" + address + '\'' +
'}';
}
public Integer getUserId() {
return userId;
}
public UserAddressAddDTO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public String getAreaNo() {
return areaNo;
}
public UserAddressAddDTO setAreaNo(String areaNo) {
this.areaNo = areaNo;
return this;
}
public String getName() {
return name;
}
public UserAddressAddDTO setName(String name) {
this.name = name;
return this;
}
public String getMobile() {
return mobile;
}
public UserAddressAddDTO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getAddress() {
return address;
}
public UserAddressAddDTO setAddress(String address) {
this.address = address;
return this;
}
}

View File

@ -1,5 +1,8 @@
package cn.iocoder.mall.user.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
@ -8,6 +11,8 @@ import java.io.Serializable;
* @author Sin
* @time 2019-04-06 13:28
*/
@Data
@Accessors(chain = true)
public class UserAddressUpdateDTO implements Serializable {
/**
@ -35,69 +40,4 @@ public class UserAddressUpdateDTO implements Serializable {
*/
private String address;
@Override
public String toString() {
return "UserAddressUpdateDTO{" +
"id=" + id +
", userId=" + userId +
", areaNo='" + areaNo + '\'' +
", name='" + name + '\'' +
", mobile='" + mobile + '\'' +
", address='" + address + '\'' +
'}';
}
public Integer getId() {
return id;
}
public UserAddressUpdateDTO setId(Integer id) {
this.id = id;
return this;
}
public Integer getUserId() {
return userId;
}
public UserAddressUpdateDTO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public String getAreaNo() {
return areaNo;
}
public UserAddressUpdateDTO setAreaNo(String areaNo) {
this.areaNo = areaNo;
return this;
}
public String getName() {
return name;
}
public UserAddressUpdateDTO setName(String name) {
this.name = name;
return this;
}
public String getMobile() {
return mobile;
}
public UserAddressUpdateDTO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getAddress() {
return address;
}
public UserAddressUpdateDTO setAddress(String address) {
this.address = address;
return this;
}
}

View File

@ -1,7 +1,12 @@
package cn.iocoder.mall.user.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
@Data
@Accessors(chain = true)
public class UserPageDTO {
/**
@ -16,31 +21,4 @@ public class UserPageDTO {
@NotNull(message = "每页条数不能为空")
private Integer pageSize;
public Integer getPageNo() {
return pageNo;
}
public String getNickname() {
return nickname;
}
public UserPageDTO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public UserPageDTO setPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
public Integer getPageSize() {
return pageSize;
}
public UserPageDTO setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
}
}

View File

@ -1,8 +1,13 @@
package cn.iocoder.mall.user.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 用户更新 DTO
*/
@Data
@Accessors(chain = true)
public class UserUpdateDTO {
/**
@ -18,31 +23,4 @@ public class UserUpdateDTO {
*/
private String avatar;
public Integer getId() {
return id;
}
public UserUpdateDTO setId(Integer id) {
this.id = id;
return this;
}
public String getNickname() {
return nickname;
}
public UserUpdateDTO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getAvatar() {
return avatar;
}
public UserUpdateDTO setAvatar(String avatar) {
this.avatar = avatar;
return this;
}
}
}

View File

@ -15,12 +15,7 @@
<artifactId>user-service-impl</artifactId>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-service-api</artifactId>
@ -40,12 +35,11 @@
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${org.mapstruct.version}</version>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
</dependency>
</dependencies>
@ -56,20 +50,8 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source> <!-- or higher, depending on your project -->
<target>1.8</target> <!-- or higher, depending on your project -->
<annotationProcessorPaths>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
</project>

View File

@ -1,8 +1,13 @@
package cn.iocoder.mall.user.biz.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
// TODO 优化IP
@Data
@Accessors(chain = true)
public class MobileCodeDO {
/**
@ -38,76 +43,4 @@ public class MobileCodeDO {
*/
private Date usedTime;
public Integer getId() {
return id;
}
public MobileCodeDO setId(Integer id) {
this.id = id;
return this;
}
public String getMobile() {
return mobile;
}
public MobileCodeDO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getCode() {
return code;
}
public MobileCodeDO setCode(String code) {
this.code = code;
return this;
}
public Integer getTodayIndex() {
return todayIndex;
}
public MobileCodeDO setTodayIndex(Integer todayIndex) {
this.todayIndex = todayIndex;
return this;
}
public Boolean getUsed() {
return used;
}
public MobileCodeDO setUsed(Boolean used) {
this.used = used;
return this;
}
public Integer getUsedUserId() {
return usedUserId;
}
public MobileCodeDO setUsedUserId(Integer usedUserId) {
this.usedUserId = usedUserId;
return this;
}
public Date getCreateTime() {
return createTime;
}
public MobileCodeDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getUsedTime() {
return usedTime;
}
public MobileCodeDO setUsedTime(Date usedTime) {
this.usedTime = usedTime;
return this;
}
}
}

View File

@ -1,7 +1,12 @@
package cn.iocoder.mall.user.biz.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@Data
@Accessors(chain = true)
public class OAuth2AccessTokenDO {
/**
@ -29,57 +34,4 @@ public class OAuth2AccessTokenDO {
*/
private Date createTime;
public String getId() {
return id;
}
public OAuth2AccessTokenDO setId(String id) {
this.id = id;
return this;
}
public String getRefreshToken() {
return refreshToken;
}
public OAuth2AccessTokenDO setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
return this;
}
public Integer getUserId() {
return userId;
}
public OAuth2AccessTokenDO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public Date getExpiresTime() {
return expiresTime;
}
public OAuth2AccessTokenDO setExpiresTime(Date expiresTime) {
this.expiresTime = expiresTime;
return this;
}
public Boolean getValid() {
return valid;
}
public OAuth2AccessTokenDO setValid(Boolean valid) {
this.valid = valid;
return this;
}
public Date getCreateTime() {
return createTime;
}
public OAuth2AccessTokenDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
}

View File

@ -1,5 +1,8 @@
package cn.iocoder.mall.user.biz.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
@ -7,6 +10,8 @@ import java.util.Date;
*
* idx_uid
*/
@Data
@Accessors(chain = true)
public class OAuth2RefreshTokenDO {
/**
@ -30,49 +35,4 @@ public class OAuth2RefreshTokenDO {
*/
private Date createTime;
public String getId() {
return id;
}
public OAuth2RefreshTokenDO setId(String id) {
this.id = id;
return this;
}
public Integer getUserId() {
return userId;
}
public OAuth2RefreshTokenDO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public Boolean getValid() {
return valid;
}
public OAuth2RefreshTokenDO setValid(Boolean valid) {
this.valid = valid;
return this;
}
public Date getExpiresTime() {
return expiresTime;
}
public OAuth2RefreshTokenDO setExpiresTime(Date expiresTime) {
this.expiresTime = expiresTime;
return this;
}
public Date getCreateTime() {
return createTime;
}
public OAuth2RefreshTokenDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}

View File

@ -1,12 +1,16 @@
package cn.iocoder.mall.user.biz.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 用户访问日志 DO
*/
@Data
@Accessors(chain = true)
public class UserAccessLogDO extends DeletableDO {
/**
@ -48,85 +52,4 @@ public class UserAccessLogDO extends DeletableDO {
*/
private Integer responseTime;
public Integer getId() {
return id;
}
public UserAccessLogDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getUserId() {
return userId;
}
public UserAccessLogDO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public String getUri() {
return uri;
}
public UserAccessLogDO setUri(String uri) {
this.uri = uri;
return this;
}
public String getQueryString() {
return queryString;
}
public UserAccessLogDO setQueryString(String queryString) {
this.queryString = queryString;
return this;
}
public String getMethod() {
return method;
}
public UserAccessLogDO setMethod(String method) {
this.method = method;
return this;
}
public String getUserAgent() {
return userAgent;
}
public UserAccessLogDO setUserAgent(String userAgent) {
this.userAgent = userAgent;
return this;
}
public String getIp() {
return ip;
}
public UserAccessLogDO setIp(String ip) {
this.ip = ip;
return this;
}
public Date getStartTime() {
return startTime;
}
public UserAccessLogDO setStartTime(Date startTime) {
this.startTime = startTime;
return this;
}
public Integer getResponseTime() {
return responseTime;
}
public UserAccessLogDO setResponseTime(Integer responseTime) {
this.responseTime = responseTime;
return this;
}
}
}

View File

@ -1,6 +1,8 @@
package cn.iocoder.mall.user.biz.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 用户地址信息
@ -8,6 +10,8 @@ import cn.iocoder.common.framework.dataobject.DeletableDO;
* @author Sin
* @time 2019-04-06 13:22
*/
@Data
@Accessors(chain = true)
public class UserAddressDO extends DeletableDO {
/**
@ -35,69 +39,4 @@ public class UserAddressDO extends DeletableDO {
*/
private String address;
@Override
public String toString() {
return "UserAddressDO{" +
"id=" + id +
", userId=" + userId +
", areaNo='" + areaNo + '\'' +
", name='" + name + '\'' +
", mobile='" + mobile + '\'' +
", address='" + address + '\'' +
'}';
}
public Integer getId() {
return id;
}
public UserAddressDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getUserId() {
return userId;
}
public UserAddressDO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public String getAreaNo() {
return areaNo;
}
public UserAddressDO setAreaNo(String areaNo) {
this.areaNo = areaNo;
return this;
}
public String getName() {
return name;
}
public UserAddressDO setName(String name) {
this.name = name;
return this;
}
public String getMobile() {
return mobile;
}
public UserAddressDO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getAddress() {
return address;
}
public UserAddressDO setAddress(String address) {
this.address = address;
return this;
}
}

View File

@ -1,12 +1,16 @@
package cn.iocoder.mall.user.biz.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 用户实体存储用户基本数据
*
* idx_mobile 唯一索引
*/
@Data
@Accessors(chain = true)
public class UserDO extends DeletableDO {
/**
@ -33,49 +37,5 @@ public class UserDO extends DeletableDO {
*/
private Integer status;
public Integer getId() {
return id;
}
public UserDO setId(Integer id) {
this.id = id;
return this;
}
public String getMobile() {
return mobile;
}
public UserDO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getNickname() {
return nickname;
}
public UserDO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getAvatar() {
return avatar;
}
public UserDO setAvatar(String avatar) {
this.avatar = avatar;
return this;
}
public Integer getStatus() {
return status;
}
public UserDO setStatus(Integer status) {
this.status = status;
return this;
}
}
}

View File

@ -1,4 +1,9 @@
package cn.iocoder.mall.user.biz.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
public class UserLoginLogDO {
}

View File

@ -1,10 +1,15 @@
package cn.iocoder.mall.user.biz.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 用户注册信息
*/
@Data
@Accessors(chain = true)
public class UserRegisterDO {
/**
@ -20,23 +25,4 @@ public class UserRegisterDO {
// TODO 芋艿 ua
// TODO 芋艿 方式手机注册qq 等等
public Integer getId() {
return id;
}
public UserRegisterDO setId(Integer id) {
this.id = id;
return this;
}
public Date getCreateTime() {
return createTime;
}
public UserRegisterDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
}

View File

@ -1,10 +1,15 @@
package cn.iocoder.mall.user.biz.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 用户三方开放平台授权例如QQ / 微博 / 微信等等
*/
@Data
@Accessors(chain = true)
public class UserThirdAuthDO {
/**
@ -63,4 +68,4 @@ public class UserThirdAuthDO {
*/
private String extras;
}
}