提交 fe4793fb authored 作者: YunaiV's avatar YunaiV

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

上级 5b628c86
...@@ -11,17 +11,17 @@ ...@@ -11,17 +11,17 @@
<artifactId>admin-application</artifactId> <artifactId>admin-application</artifactId>
<properties>
<org.mapstruct.version>1.3.0.Final</org.mapstruct.version>
</properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>cn.iocoder.mall</groupId> <groupId>cn.iocoder.mall</groupId>
<artifactId>admin-service-impl</artifactId> <artifactId>admin-service-impl</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>admin-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency> <dependency>
<groupId>cn.iocoder.mall</groupId> <groupId>cn.iocoder.mall</groupId>
<artifactId>common-framework</artifactId> <artifactId>common-framework</artifactId>
...@@ -42,42 +42,24 @@ ...@@ -42,42 +42,24 @@
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId> <artifactId>dubbo</artifactId>
<version>2.6.5</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.alibaba.boot</groupId> <groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId> <artifactId>dubbo-spring-boot-starter</artifactId>
<version>0.2.1.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.curator</groupId> <groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId> <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>
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId> <artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId> <artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</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>
<dependency> <dependency>
...@@ -86,12 +68,6 @@ ...@@ -86,12 +68,6 @@
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>admin-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<!--<dependency>--> <!--<dependency>-->
<!--<groupId>de.codecentric</groupId>--> <!--<groupId>de.codecentric</groupId>-->
<!--<artifactId>spring-boot-admin-starter-server</artifactId>--> <!--<artifactId>spring-boot-admin-starter-server</artifactId>-->
...@@ -121,31 +97,16 @@ ...@@ -121,31 +97,16 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <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>
<!-- 打包 --> <!-- 打包 -->
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Set; import java.util.Set;
@ApiModel("管理员信息 VO") @ApiModel("管理员信息 VO")
@Data
@Accessors(chain = true)
public class AdminInfoVO { public class AdminInfoVO {
@ApiModelProperty(value = "管理员比那好", required = true, example = "1") @ApiModelProperty(value = "管理员比那好", required = true, example = "1")
...@@ -13,22 +17,4 @@ public class AdminInfoVO { ...@@ -13,22 +17,4 @@ public class AdminInfoVO {
@ApiModelProperty(value = "角色编号的数组", required = true, example = "[1, 2]") @ApiModelProperty(value = "角色编号的数组", required = true, example = "[1, 2]")
private Set<Integer> roleIds; private Set<Integer> roleIds;
public Integer getAdminId() { }
return adminId;
}
public AdminInfoVO setAdminId(Integer adminId) {
this.adminId = adminId;
return this;
}
public Set<Integer> getRoleIds() {
return roleIds;
}
public AdminInfoVO setRoleIds(Set<Integer> roleIds) {
this.roleIds = roleIds;
return this;
}
}
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List; import java.util.List;
@ApiModel("管理员拥有的菜单 VO") @ApiModel("管理员拥有的菜单 VO")
@Data
@Accessors(chain = true)
public class AdminMenuTreeNodeVO { public class AdminMenuTreeNodeVO {
@ApiModelProperty(value = "菜单编号", required = true, example = "1") @ApiModelProperty(value = "菜单编号", required = true, example = "1")
...@@ -23,58 +27,4 @@ public class AdminMenuTreeNodeVO { ...@@ -23,58 +27,4 @@ public class AdminMenuTreeNodeVO {
@ApiModelProperty(value = "子节点数组") @ApiModelProperty(value = "子节点数组")
private List<AdminMenuTreeNodeVO> children; private List<AdminMenuTreeNodeVO> children;
public Integer getId() { }
return id;
}
public AdminMenuTreeNodeVO setId(Integer id) {
this.id = id;
return this;
}
public String getHandler() {
return handler;
}
public AdminMenuTreeNodeVO setHandler(String handler) {
this.handler = handler;
return this;
}
public Integer getPid() {
return pid;
}
public AdminMenuTreeNodeVO setPid(Integer pid) {
this.pid = pid;
return this;
}
public Integer getSort() {
return sort;
}
public AdminMenuTreeNodeVO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getDisplayName() {
return displayName;
}
public AdminMenuTreeNodeVO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public List<AdminMenuTreeNodeVO> getChildren() {
return children;
}
public AdminMenuTreeNodeVO setChildren(List<AdminMenuTreeNodeVO> children) {
this.children = children;
return this;
}
}
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List; import java.util.List;
@ApiModel("管理员分页 VO") @ApiModel("管理员分页 VO")
@Data
@Accessors(chain = true)
public class AdminPageVO { public class AdminPageVO {
@ApiModelProperty(value = "管理员数组") @ApiModelProperty(value = "管理员数组")
...@@ -13,22 +17,4 @@ public class AdminPageVO { ...@@ -13,22 +17,4 @@ public class AdminPageVO {
@ApiModelProperty(value = "管理员总数") @ApiModelProperty(value = "管理员总数")
private Integer total; private Integer total;
public List<AdminVO> getList() { }
return list;
}
public AdminPageVO setList(List<AdminVO> list) {
this.list = list;
return this;
}
public Integer getTotal() {
return total;
}
public AdminPageVO setTotal(Integer total) {
this.total = total;
return this;
}
}
\ No newline at end of file
...@@ -2,8 +2,12 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,8 +2,12 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
@ApiModel("管理员拥有的角色 VO") @ApiModel("管理员拥有的角色 VO")
@Data
@Accessors(chain = true)
public class AdminRoleVO { public class AdminRoleVO {
@ApiModelProperty(value = "角色编号", required = true, example = "1") @ApiModelProperty(value = "角色编号", required = true, example = "1")
...@@ -13,31 +17,4 @@ public class AdminRoleVO { ...@@ -13,31 +17,4 @@ public class AdminRoleVO {
@ApiModelProperty(value = "是否授权", required = true, example = "true") @ApiModelProperty(value = "是否授权", required = true, example = "true")
private Boolean assigned; private Boolean assigned;
public Integer getId() { }
return id;
}
public AdminRoleVO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public AdminRoleVO setName(String name) {
this.name = name;
return this;
}
public Boolean getAssigned() {
return assigned;
}
public AdminRoleVO setAssigned(Boolean assigned) {
this.assigned = assigned;
return this;
}
}
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
@ApiModel("管理员 VO") @ApiModel("管理员 VO")
@Data
@Accessors(chain = true)
public class AdminVO { public class AdminVO {
@ApiModelProperty(value = "管理员编号", required = true, example = "1") @ApiModelProperty(value = "管理员编号", required = true, example = "1")
...@@ -19,49 +23,4 @@ public class AdminVO { ...@@ -19,49 +23,4 @@ public class AdminVO {
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式") @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式")
private Date createTime; private Date createTime;
public Integer getId() { }
return id;
}
public AdminVO setId(Integer id) {
this.id = id;
return this;
}
public String getUsername() {
return username;
}
public AdminVO setUsername(String username) {
this.username = username;
return this;
}
public String getNickname() {
return nickname;
}
public AdminVO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public Integer getStatus() {
return status;
}
public AdminVO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public AdminVO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List; import java.util.List;
@ApiModel("数据字典枚举 VO") @ApiModel("数据字典枚举 VO")
@Data
@Accessors(chain = true)
public class DataDictEnumVO { public class DataDictEnumVO {
@ApiModelProperty(value = "大类枚举值", required = true, example = "gender") @ApiModelProperty(value = "大类枚举值", required = true, example = "gender")
...@@ -13,22 +17,4 @@ public class DataDictEnumVO { ...@@ -13,22 +17,4 @@ public class DataDictEnumVO {
@ApiModelProperty(value = "小类数值数组", required = true) @ApiModelProperty(value = "小类数值数组", required = true)
private List<DataDictValueVO> values; private List<DataDictValueVO> values;
public String getEnumValue() { }
return enumValue;
}
public DataDictEnumVO setEnumValue(String enumValue) {
this.enumValue = enumValue;
return this;
}
public List<DataDictValueVO> getValues() {
return values;
}
public DataDictEnumVO setValues(List<DataDictValueVO> values) {
this.values = values;
return this;
}
}
\ No newline at end of file
...@@ -2,8 +2,12 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,8 +2,12 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
@ApiModel("数据字典 VO") @ApiModel("数据字典 VO")
@Data
@Accessors(chain = true)
public class DataDictVO { public class DataDictVO {
@ApiModelProperty(value = "编号", required = true, example = "1") @ApiModelProperty(value = "编号", required = true, example = "1")
...@@ -19,58 +23,4 @@ public class DataDictVO { ...@@ -19,58 +23,4 @@ public class DataDictVO {
@ApiModelProperty(value = "备注", example = "你猜") @ApiModelProperty(value = "备注", example = "你猜")
private String memo; private String memo;
public Integer getId() { }
return id;
}
public DataDictVO setId(Integer id) {
this.id = id;
return this;
}
public String getEnumValue() {
return enumValue;
}
public DataDictVO setEnumValue(String enumValue) {
this.enumValue = enumValue;
return this;
}
public String getValue() {
return value;
}
public DataDictVO setValue(String value) {
this.value = value;
return this;
}
public String getDisplayName() {
return displayName;
}
public DataDictVO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Integer getSort() {
return sort;
}
public DataDictVO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public DataDictVO setMemo(String memo) {
this.memo = memo;
return this;
}
}
\ No newline at end of file
...@@ -2,8 +2,12 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,8 +2,12 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
@ApiModel("数据字典枚举值 VO") @ApiModel("数据字典枚举值 VO")
@Data
@Accessors(chain = true)
public class DataDictValueVO { public class DataDictValueVO {
@ApiModelProperty(value = "小类数值", required = true, example = "1") @ApiModelProperty(value = "小类数值", required = true, example = "1")
...@@ -11,22 +15,4 @@ public class DataDictValueVO { ...@@ -11,22 +15,4 @@ public class DataDictValueVO {
@ApiModelProperty(value = "展示名", required = true, example = "男") @ApiModelProperty(value = "展示名", required = true, example = "男")
private String displayName; private String displayName;
public String getValue() { }
return value;
}
public DataDictValueVO setValue(String value) {
this.value = value;
return this;
}
public String getDisplayName() {
return displayName;
}
public DataDictValueVO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
}
\ No newline at end of file
...@@ -2,8 +2,12 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,8 +2,12 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
@ApiModel("登陆结果 VO") @ApiModel("登陆结果 VO")
@Data
@Accessors(chain = true)
public class PassportLoginVO { public class PassportLoginVO {
@ApiModelProperty(value = "访问令牌", required = true, example = "2e3d7635c15e47e997611707a237859f") @ApiModelProperty(value = "访问令牌", required = true, example = "2e3d7635c15e47e997611707a237859f")
...@@ -12,32 +16,4 @@ public class PassportLoginVO { ...@@ -12,32 +16,4 @@ public class PassportLoginVO {
private String refreshToken; private String refreshToken;
@ApiModelProperty(value = "过期时间,单位:秒", required = true, example = "2879") @ApiModelProperty(value = "过期时间,单位:秒", required = true, example = "2879")
private Integer expiresIn; private Integer expiresIn;
}
public String getAccessToken() {
return accessToken;
}
public PassportLoginVO setAccessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
public String getRefreshToken() {
return refreshToken;
}
public PassportLoginVO setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
return this;
}
public Integer getExpiresIn() {
return expiresIn;
}
public PassportLoginVO setExpiresIn(Integer expiresIn) {
this.expiresIn = expiresIn;
return this;
}
}
\ No newline at end of file
...@@ -2,11 +2,15 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,11 +2,15 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@ApiModel("资源树结构 VO") @ApiModel("资源树结构 VO")
@Data
@Accessors(chain = true)
public class ResourceTreeNodeVO { public class ResourceTreeNodeVO {
@ApiModelProperty(value = "资源编号", required = true, example = "1") @ApiModelProperty(value = "资源编号", required = true, example = "1")
...@@ -28,85 +32,4 @@ public class ResourceTreeNodeVO { ...@@ -28,85 +32,4 @@ public class ResourceTreeNodeVO {
@ApiModelProperty(value = "子节点数组") @ApiModelProperty(value = "子节点数组")
private List<ResourceTreeNodeVO> children; private List<ResourceTreeNodeVO> children;
public Integer getId() { }
return id;
}
public ResourceTreeNodeVO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public ResourceTreeNodeVO setName(String name) {
this.name = name;
return this;
}
public Integer getType() {
return type;
}
public ResourceTreeNodeVO setType(Integer type) {
this.type = type;
return this;
}
public Integer getSort() {
return sort;
}
public ResourceTreeNodeVO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getDisplayName() {
return displayName;
}
public ResourceTreeNodeVO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Date getCreateTime() {
return createTime;
}
public ResourceTreeNodeVO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Integer getPid() {
return pid;
}
public ResourceTreeNodeVO setPid(Integer pid) {
this.pid = pid;
return this;
}
public String getHandler() {
return handler;
}
public ResourceTreeNodeVO setHandler(String handler) {
this.handler = handler;
return this;
}
public List<ResourceTreeNodeVO> getChildren() {
return children;
}
public ResourceTreeNodeVO setChildren(List<ResourceTreeNodeVO> children) {
this.children = children;
return this;
}
}
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
@ApiModel("资源 VO") @ApiModel("资源 VO")
@Data
@Accessors(chain = true)
public class ResourceVO { public class ResourceVO {
@ApiModelProperty(value = "资源编号", required = true, example = "1") @ApiModelProperty(value = "资源编号", required = true, example = "1")
...@@ -25,76 +29,4 @@ public class ResourceVO { ...@@ -25,76 +29,4 @@ public class ResourceVO {
@ApiModelProperty(value = "操作", required = true, example = "/order/list") @ApiModelProperty(value = "操作", required = true, example = "/order/list")
private String handler; private String handler;
public Integer getId() { }
return id;
}
public ResourceVO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public ResourceVO setName(String name) {
this.name = name;
return this;
}
public Integer getType() {
return type;
}
public ResourceVO setType(Integer type) {
this.type = type;
return this;
}
public Integer getSort() {
return sort;
}
public ResourceVO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getDisplayName() {
return displayName;
}
public ResourceVO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Date getCreateTime() {
return createTime;
}
public ResourceVO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Integer getPid() {
return pid;
}
public ResourceVO setPid(Integer pid) {
this.pid = pid;
return this;
}
public String getHandler() {
return handler;
}
public ResourceVO setHandler(String handler) {
this.handler = handler;
return this;
}
}
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List; import java.util.List;
@ApiModel("角色分页 VO") @ApiModel("角色分页 VO")
@Data
@Accessors(chain = true)
public class RolePageVO { public class RolePageVO {
@ApiModelProperty(value = "角色数组") @ApiModelProperty(value = "角色数组")
...@@ -13,22 +17,4 @@ public class RolePageVO { ...@@ -13,22 +17,4 @@ public class RolePageVO {
@ApiModelProperty(value = "角色总数") @ApiModelProperty(value = "角色总数")
private Integer count; private Integer count;
public List<RoleVO> getRoles() { }
return roles;
}
public RolePageVO setRoles(List<RoleVO> roles) {
this.roles = roles;
return this;
}
public Integer getCount() {
return count;
}
public RolePageVO setCount(Integer count) {
this.count = count;
return this;
}
}
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List; import java.util.List;
@ApiModel("角色拥有的资源 VO") @ApiModel("角色拥有的资源 VO")
@Data
@Accessors(chain = true)
public class RoleResourceTreeNodeVO { public class RoleResourceTreeNodeVO {
@ApiModelProperty(value = "菜单编号", required = true, example = "1") @ApiModelProperty(value = "菜单编号", required = true, example = "1")
...@@ -25,66 +29,4 @@ public class RoleResourceTreeNodeVO { ...@@ -25,66 +29,4 @@ public class RoleResourceTreeNodeVO {
@ApiModelProperty(value = "是否授权", required = true, example = "true") @ApiModelProperty(value = "是否授权", required = true, example = "true")
private Boolean assigned; private Boolean assigned;
public Integer getId() { }
return id;
}
public RoleResourceTreeNodeVO setId(Integer id) {
this.id = id;
return this;
}
public String getHandler() {
return handler;
}
public RoleResourceTreeNodeVO setHandler(String handler) {
this.handler = handler;
return this;
}
public Integer getPid() {
return pid;
}
public RoleResourceTreeNodeVO setPid(Integer pid) {
this.pid = pid;
return this;
}
public Integer getSort() {
return sort;
}
public RoleResourceTreeNodeVO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getDisplayName() {
return displayName;
}
public RoleResourceTreeNodeVO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public List<RoleResourceTreeNodeVO> getChildren() {
return children;
}
public RoleResourceTreeNodeVO setChildren(List<RoleResourceTreeNodeVO> children) {
this.children = children;
return this;
}
public Boolean getAssigned() {
return assigned;
}
public RoleResourceTreeNodeVO setAssigned(Boolean assigned) {
this.assigned = assigned;
return this;
}
}
\ No newline at end of file
...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo; ...@@ -2,10 +2,14 @@ package cn.iocoder.mall.admin.application.vo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
@ApiModel("角色 VO") @ApiModel("角色 VO")
@Data
@Accessors(chain = true)
public class RoleVO { public class RoleVO {
@ApiModelProperty(value = "角色编号", required = true, example = "1") @ApiModelProperty(value = "角色编号", required = true, example = "1")
...@@ -15,31 +19,4 @@ public class RoleVO { ...@@ -15,31 +19,4 @@ public class RoleVO {
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式") @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式")
private Date createTime; private Date createTime;
public Integer getId() { }
return id;
}
public RoleVO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public RoleVO setName(String name) {
this.name = name;
return this;
}
public Date getCreateTime() {
return createTime;
}
public RoleVO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
\ No newline at end of file
...@@ -25,29 +25,29 @@ ...@@ -25,29 +25,29 @@
<version>5.1.5.RELEASE</version> <version>5.1.5.RELEASE</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId> <artifactId>dubbo</artifactId>
<version>2.6.5</version> <version>2.6.5</version>
<scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId> <artifactId>servlet-api</artifactId>
<version>2.5</version> <version>2.5</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.iocoder.mall</groupId> <groupId>cn.iocoder.mall</groupId>
<artifactId>common-framework</artifactId> <artifactId>common-framework</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.iocoder.mall</groupId> <groupId>cn.iocoder.mall</groupId>
<artifactId>admin-service-api</artifactId> <artifactId>admin-service-api</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -17,11 +17,25 @@ ...@@ -17,11 +17,25 @@
<artifactId>common-framework</artifactId> <artifactId>common-framework</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</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> <dependency>
<groupId>org.hibernate.validator</groupId> <groupId>org.projectlombok</groupId>
<artifactId>hibernate-validator</artifactId> <artifactId>lombok</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
package cn.iocoder.mall.admin.api.bo; package cn.iocoder.mall.admin.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
/**
* 管理员 BO
*/
@Data
@Accessors(chain = true)
public class AdminBO { public class AdminBO {
/** /**
...@@ -25,48 +33,4 @@ public class AdminBO { ...@@ -25,48 +33,4 @@ public class AdminBO {
*/ */
private Date createTime; private Date createTime;
public Integer getId() {
return id;
}
public AdminBO setId(Integer id) {
this.id = id;
return this;
}
public String getUsername() {
return username;
}
public AdminBO setUsername(String username) {
this.username = username;
return this;
}
public String getNickname() {
return nickname;
}
public AdminBO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public Integer getStatus() {
return status;
}
public AdminBO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public AdminBO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
} }
package cn.iocoder.mall.admin.api.bo; package cn.iocoder.mall.admin.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List; import java.util.List;
/**
* 管理员分页 BO
*/
@Data
@Accessors(chain = true)
public class AdminPageBO { public class AdminPageBO {
/** /**
...@@ -13,22 +21,4 @@ public class AdminPageBO { ...@@ -13,22 +21,4 @@ public class AdminPageBO {
*/ */
private Integer total; private Integer total;
public List<AdminBO> getList() { }
return list;
}
public AdminPageBO setList(List<AdminBO> list) {
this.list = list;
return this;
}
public Integer getTotal() {
return total;
}
public AdminPageBO setTotal(Integer total) {
this.total = total;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.bo; package cn.iocoder.mall.admin.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
/** /**
* 数据字典 BO * 数据字典 BO
*/ */
@Data
@Accessors(chain = true)
public class DataDictBO { public class DataDictBO {
/** /**
...@@ -36,67 +41,4 @@ public class DataDictBO { ...@@ -36,67 +41,4 @@ public class DataDictBO {
*/ */
private Date createTime; private Date createTime;
public Integer getId() { }
return id;
}
public DataDictBO setId(Integer id) {
this.id = id;
return this;
}
public String getEnumValue() {
return enumValue;
}
public DataDictBO setEnumValue(String enumValue) {
this.enumValue = enumValue;
return this;
}
public String getValue() {
return value;
}
public DataDictBO setValue(String value) {
this.value = value;
return this;
}
public String getDisplayName() {
return displayName;
}
public DataDictBO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Integer getSort() {
return sort;
}
public DataDictBO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public DataDictBO setMemo(String memo) {
this.memo = memo;
return this;
}
public Date getCreateTime() {
return createTime;
}
public DataDictBO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.bo; package cn.iocoder.mall.admin.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
/**
* OAUTH2 AccessToken BO
*/
@Data
@Accessors(chain = true)
public class OAuth2AccessTokenBO implements Serializable { public class OAuth2AccessTokenBO implements Serializable {
/** /**
...@@ -17,31 +25,4 @@ public class OAuth2AccessTokenBO implements Serializable { ...@@ -17,31 +25,4 @@ public class OAuth2AccessTokenBO implements Serializable {
*/ */
private Integer expiresIn; 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;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.bo; package cn.iocoder.mall.admin.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.util.Set; import java.util.Set;
/**
* OAUTH2 认证 BO
*/
@Data
@Accessors(chain = true)
public class OAuth2AuthenticationBO implements Serializable { public class OAuth2AuthenticationBO implements Serializable {
/** /**
...@@ -14,22 +22,4 @@ public class OAuth2AuthenticationBO implements Serializable { ...@@ -14,22 +22,4 @@ public class OAuth2AuthenticationBO implements Serializable {
*/ */
private Set<Integer> roleIds; private Set<Integer> roleIds;
public Integer getAdminId() { }
return adminId;
}
public OAuth2AuthenticationBO setAdminId(Integer adminId) {
this.adminId = adminId;
return this;
}
public Set<Integer> getRoleIds() {
return roleIds;
}
public OAuth2AuthenticationBO setRoleIds(Set<Integer> roleIds) {
this.roleIds = roleIds;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.bo; package cn.iocoder.mall.admin.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
/** /**
* 资源 BO * 资源 BO
*/ */
@Data
@Accessors(chain = true)
public class ResourceBO { public class ResourceBO {
/** /**
...@@ -40,76 +45,4 @@ public class ResourceBO { ...@@ -40,76 +45,4 @@ public class ResourceBO {
*/ */
private String handler; private String handler;
public Integer getId() { }
return id;
}
public ResourceBO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public ResourceBO setName(String name) {
this.name = name;
return this;
}
public Integer getType() {
return type;
}
public ResourceBO setType(Integer type) {
this.type = type;
return this;
}
public Integer getSort() {
return sort;
}
public ResourceBO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getDisplayName() {
return displayName;
}
public ResourceBO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Date getCreateTime() {
return createTime;
}
public ResourceBO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Integer getPid() {
return pid;
}
public ResourceBO setPid(Integer pid) {
this.pid = pid;
return this;
}
public String getHandler() {
return handler;
}
public ResourceBO setHandler(String handler) {
this.handler = handler;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.bo; package cn.iocoder.mall.admin.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
/** /**
* 角色 BO * 角色 BO
*/ */
@Data
@Accessors(chain = true)
public class RoleBO { public class RoleBO {
/** /**
...@@ -20,31 +25,4 @@ public class RoleBO { ...@@ -20,31 +25,4 @@ public class RoleBO {
*/ */
private Date createTime; private Date createTime;
public Integer getId() { }
return id;
}
public RoleBO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public RoleBO setName(String name) {
this.name = name;
return this;
}
public Date getCreateTime() {
return createTime;
}
public RoleBO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.bo; package cn.iocoder.mall.admin.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List; import java.util.List;
/**
* 角色分页 BO
*/
@Data
@Accessors(chain = true)
public class RolePageBO { public class RolePageBO {
/** /**
...@@ -13,22 +21,4 @@ public class RolePageBO { ...@@ -13,22 +21,4 @@ public class RolePageBO {
*/ */
private Integer count; private Integer count;
public List<RoleBO> getRoles() { }
return roles;
}
public RolePageBO setRoles(List<RoleBO> roles) {
this.roles = roles;
return this;
}
public Integer getCount() {
return count;
}
public RolePageBO setCount(Integer count) {
this.count = count;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.util.Date; import java.util.Date;
/** /**
* 管理员访问日志添加 DTO * 管理员访问日志添加 DTO
*/ */
@Data
@Accessors(chain = true)
public class AdminAccessLogAddDTO { public class AdminAccessLogAddDTO {
/** /**
...@@ -57,76 +62,4 @@ public class AdminAccessLogAddDTO { ...@@ -57,76 +62,4 @@ public class AdminAccessLogAddDTO {
@NotNull(message = "响应时长不能为空") @NotNull(message = "响应时长不能为空")
private Integer responseTime; private Integer responseTime;
public Integer getAdminId() { }
return adminId;
}
public AdminAccessLogAddDTO setAdminId(Integer adminId) {
this.adminId = adminId;
return this;
}
public String getUri() {
return uri;
}
public AdminAccessLogAddDTO setUri(String uri) {
this.uri = uri;
return this;
}
public String getQueryString() {
return queryString;
}
public AdminAccessLogAddDTO setQueryString(String queryString) {
this.queryString = queryString;
return this;
}
public String getMethod() {
return method;
}
public AdminAccessLogAddDTO setMethod(String method) {
this.method = method;
return this;
}
public String getUserAgent() {
return userAgent;
}
public AdminAccessLogAddDTO setUserAgent(String userAgent) {
this.userAgent = userAgent;
return this;
}
public String getIp() {
return ip;
}
public AdminAccessLogAddDTO setIp(String ip) {
this.ip = ip;
return this;
}
public Date getStartTime() {
return startTime;
}
public AdminAccessLogAddDTO setStartTime(Date startTime) {
this.startTime = startTime;
return this;
}
public Integer getResponseTime() {
return responseTime;
}
public AdminAccessLogAddDTO setResponseTime(Integer responseTime) {
this.responseTime = responseTime;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
...@@ -8,6 +10,8 @@ import javax.validation.constraints.Pattern; ...@@ -8,6 +10,8 @@ import javax.validation.constraints.Pattern;
/** /**
* 管理员添加 DTO * 管理员添加 DTO
*/ */
@Data
@Accessors(chain = true)
public class AdminAddDTO { public class AdminAddDTO {
/** /**
...@@ -30,30 +34,4 @@ public class AdminAddDTO { ...@@ -30,30 +34,4 @@ public class AdminAddDTO {
@Length(min = 6, max = 16, message = "密码长度为 6-16 位") @Length(min = 6, max = 16, message = "密码长度为 6-16 位")
private String password; private String password;
public String getUsername() { }
return username;
}
public AdminAddDTO setUsername(String username) {
this.username = username;
return this;
}
public String getNickname() {
return nickname;
}
public AdminAddDTO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getPassword() {
return password;
}
public AdminAddDTO setPassword(String password) {
this.password = password;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
/**
* 管理员分页 DTO
*/
@Data
@Accessors(chain = true)
public class AdminPageDTO { public class AdminPageDTO {
/** /**
...@@ -14,31 +22,4 @@ public class AdminPageDTO { ...@@ -14,31 +22,4 @@ public class AdminPageDTO {
@NotNull(message = "每页条数不能为空") @NotNull(message = "每页条数不能为空")
private Integer pageSize; private Integer pageSize;
public Integer getPageNo() {
return pageNo;
}
public AdminPageDTO setPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
public Integer getPageSize() {
return pageSize;
}
public AdminPageDTO setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
public String getNickname() {
return nickname;
}
public AdminPageDTO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
} }
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
...@@ -9,6 +11,8 @@ import javax.validation.constraints.Pattern; ...@@ -9,6 +11,8 @@ import javax.validation.constraints.Pattern;
/** /**
* 管理员更新 DTO * 管理员更新 DTO
*/ */
@Data
@Accessors(chain = true)
public class AdminUpdateDTO { public class AdminUpdateDTO {
/** /**
...@@ -35,39 +39,4 @@ public class AdminUpdateDTO { ...@@ -35,39 +39,4 @@ public class AdminUpdateDTO {
@Length(min = 6, max = 16, message = "密码长度为 6-16 位") @Length(min = 6, max = 16, message = "密码长度为 6-16 位")
private String password; private String password;
public String getUsername() { }
return username;
}
public AdminUpdateDTO setUsername(String username) {
this.username = username;
return this;
}
public String getNickname() {
return nickname;
}
public AdminUpdateDTO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getPassword() {
return password;
}
public AdminUpdateDTO setPassword(String password) {
this.password = password;
return this;
}
public Integer getId() {
return id;
}
public AdminUpdateDTO setId(Integer id) {
this.id = id;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
/** /**
* 数据字典添加 DTO * 数据字典添加 DTO
*/ */
@Data
@Accessors(chain = true)
public class DataDictAddDTO { public class DataDictAddDTO {
/** /**
...@@ -33,49 +38,4 @@ public class DataDictAddDTO { ...@@ -33,49 +38,4 @@ public class DataDictAddDTO {
*/ */
private String memo; private String memo;
public String getEnumValue() { }
return enumValue;
}
public DataDictAddDTO setEnumValue(String enumValue) {
this.enumValue = enumValue;
return this;
}
public String getValue() {
return value;
}
public DataDictAddDTO setValue(String value) {
this.value = value;
return this;
}
public String getDisplayName() {
return displayName;
}
public DataDictAddDTO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Integer getSort() {
return sort;
}
public DataDictAddDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public DataDictAddDTO setMemo(String memo) {
this.memo = memo;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
/** /**
* 数据字典更新 DTO * 数据字典更新 DTO
*/ */
@Data
@Accessors(chain = true)
public class DataDictUpdateDTO { public class DataDictUpdateDTO {
/** /**
...@@ -33,49 +38,4 @@ public class DataDictUpdateDTO { ...@@ -33,49 +38,4 @@ public class DataDictUpdateDTO {
*/ */
private String memo; private String memo;
public Integer getId() { }
return id;
}
public DataDictUpdateDTO setId(Integer id) {
this.id = id;
return this;
}
public String getValue() {
return value;
}
public DataDictUpdateDTO setValue(String value) {
this.value = value;
return this;
}
public String getDisplayName() {
return displayName;
}
public DataDictUpdateDTO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Integer getSort() {
return sort;
}
public DataDictUpdateDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public DataDictUpdateDTO setMemo(String memo) {
this.memo = memo;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
/** /**
* 资源添加 DTO * 资源添加 DTO
*/ */
@Data
@Accessors(chain = true)
public class ResourceAddDTO { public class ResourceAddDTO {
/** /**
...@@ -37,58 +42,4 @@ public class ResourceAddDTO { ...@@ -37,58 +42,4 @@ public class ResourceAddDTO {
*/ */
private String handler; private String handler;
public String getName() { }
return name;
}
public ResourceAddDTO setName(String name) {
this.name = name;
return this;
}
public Integer getType() {
return type;
}
public ResourceAddDTO setType(Integer type) {
this.type = type;
return this;
}
public Integer getSort() {
return sort;
}
public ResourceAddDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getDisplayName() {
return displayName;
}
public ResourceAddDTO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Integer getPid() {
return pid;
}
public ResourceAddDTO setPid(Integer pid) {
this.pid = pid;
return this;
}
public String getHandler() {
return handler;
}
public ResourceAddDTO setHandler(String handler) {
this.handler = handler;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
/** /**
* 资源更新 DTO * 资源更新 DTO
*/ */
@Data
@Accessors(chain = true)
public class ResourceUpdateDTO { public class ResourceUpdateDTO {
/** /**
...@@ -37,58 +42,4 @@ public class ResourceUpdateDTO { ...@@ -37,58 +42,4 @@ public class ResourceUpdateDTO {
*/ */
private String handler; private String handler;
public Integer getId() { }
return id;
}
public ResourceUpdateDTO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public ResourceUpdateDTO setName(String name) {
this.name = name;
return this;
}
public Integer getSort() {
return sort;
}
public ResourceUpdateDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getDisplayName() {
return displayName;
}
public ResourceUpdateDTO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Integer getPid() {
return pid;
}
public ResourceUpdateDTO setPid(Integer pid) {
this.pid = pid;
return this;
}
public String getHandler() {
return handler;
}
public ResourceUpdateDTO setHandler(String handler) {
this.handler = handler;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
/** /**
* 角色添加 DTO * 角色添加 DTO
*/ */
@Data
@Accessors(chain = true)
public class RoleAddDTO { public class RoleAddDTO {
/** /**
...@@ -13,13 +18,4 @@ public class RoleAddDTO { ...@@ -13,13 +18,4 @@ public class RoleAddDTO {
@NotEmpty(message = "角色名字不能为空") @NotEmpty(message = "角色名字不能为空")
private String name; private String name;
public String getName() { }
return name;
}
public RoleAddDTO setName(String name) {
this.name = name;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 角色分页 DTO
*/
@Data
@Accessors(chain = true)
public class RolePageDTO { public class RolePageDTO {
private Integer pageNo; private Integer pageNo;
......
package cn.iocoder.mall.admin.api.dto; package cn.iocoder.mall.admin.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
/** /**
* 角色添加 DTO * 角色添加 DTO
*/ */
@Data
@Accessors(chain = true)
public class RoleUpdateDTO { public class RoleUpdateDTO {
/** /**
...@@ -19,22 +24,4 @@ public class RoleUpdateDTO { ...@@ -19,22 +24,4 @@ public class RoleUpdateDTO {
@NotEmpty(message = "角色名字不能为空") @NotEmpty(message = "角色名字不能为空")
private String name; private String name;
public Integer getId() { }
return id;
}
public RoleUpdateDTO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public RoleUpdateDTO setName(String name) {
this.name = name;
return this;
}
}
\ No newline at end of file
...@@ -11,21 +11,12 @@ ...@@ -11,21 +11,12 @@
<artifactId>admin-service-impl</artifactId> <artifactId>admin-service-impl</artifactId>
<properties>
<org.mapstruct.version>1.3.0.Final</org.mapstruct.version>
</properties>
<dependencies> <dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>cn.iocoder.mall</groupId> <groupId>cn.iocoder.mall</groupId>
<artifactId>admin-service-api</artifactId> <artifactId>admin-service-api</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
...@@ -38,20 +29,18 @@ ...@@ -38,20 +29,18 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mybatis.spring.boot</groupId> <groupId>com.alibaba</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId> <artifactId>dubbo</artifactId>
<version>2.0.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mapstruct</groupId> <groupId>org.mybatis.spring.boot</groupId>
<artifactId>mapstruct</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<version>${org.mapstruct.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>27.0.1-jre</version>
</dependency> </dependency>
</dependencies> </dependencies>
...@@ -62,21 +51,9 @@ ...@@ -62,21 +51,9 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <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>
</plugins> </plugins>
</build> </build>
</project> </project>
\ No newline at end of file
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
/** /**
* 管理员访问日志 DO * 管理员访问日志 DO
*/ */
@Data
@Accessors(chain = true)
public class AdminAccessLogDO extends DeletableDO { public class AdminAccessLogDO extends DeletableDO {
/** /**
...@@ -48,85 +52,4 @@ public class AdminAccessLogDO extends DeletableDO { ...@@ -48,85 +52,4 @@ public class AdminAccessLogDO extends DeletableDO {
*/ */
private Integer responseTime; private Integer responseTime;
public Integer getId() { }
return id;
}
public AdminAccessLogDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getAdminId() {
return adminId;
}
public AdminAccessLogDO setAdminId(Integer adminId) {
this.adminId = adminId;
return this;
}
public String getUri() {
return uri;
}
public AdminAccessLogDO setUri(String uri) {
this.uri = uri;
return this;
}
public String getQueryString() {
return queryString;
}
public AdminAccessLogDO setQueryString(String queryString) {
this.queryString = queryString;
return this;
}
public String getMethod() {
return method;
}
public AdminAccessLogDO setMethod(String method) {
this.method = method;
return this;
}
public String getUserAgent() {
return userAgent;
}
public AdminAccessLogDO setUserAgent(String userAgent) {
this.userAgent = userAgent;
return this;
}
public String getIp() {
return ip;
}
public AdminAccessLogDO setIp(String ip) {
this.ip = ip;
return this;
}
public Date getStartTime() {
return startTime;
}
public AdminAccessLogDO setStartTime(Date startTime) {
this.startTime = startTime;
return this;
}
public Integer getResponseTime() {
return responseTime;
}
public AdminAccessLogDO setResponseTime(Integer responseTime) {
this.responseTime = responseTime;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/** /**
* 管理员实体 * 管理员实体
*/ */
@Data
@Accessors(chain = true)
public class AdminDO extends DeletableDO { public class AdminDO extends DeletableDO {
/** /**
...@@ -30,49 +34,4 @@ public class AdminDO extends DeletableDO { ...@@ -30,49 +34,4 @@ public class AdminDO extends DeletableDO {
*/ */
private Integer status; private Integer status;
public Integer getId() {
return id;
}
public AdminDO setId(Integer id) {
this.id = id;
return this;
}
public String getUsername() {
return username;
}
public AdminDO setUsername(String username) {
this.username = username;
return this;
}
public String getNickname() {
return nickname;
}
public AdminDO setNickname(String nickname) {
this.nickname = nickname;
return this;
}
public String getPassword() {
return password;
}
public AdminDO setPassword(String password) {
this.password = password;
return this;
}
public Integer getStatus() {
return status;
}
public AdminDO setStatus(Integer status) {
this.status = status;
return this;
}
} }
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/** /**
* {@link AdminDO} 和 {@link RoleDO} 的关联表 * {@link AdminDO} 和 {@link RoleDO} 的关联表
*/ */
@Data
@Accessors(chain = true)
public class AdminRoleDO extends DeletableDO { public class AdminRoleDO extends DeletableDO {
/** /**
...@@ -20,31 +24,4 @@ public class AdminRoleDO extends DeletableDO { ...@@ -20,31 +24,4 @@ public class AdminRoleDO extends DeletableDO {
*/ */
private Integer roleId; private Integer roleId;
public Integer getId() { }
return id;
}
public AdminRoleDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getAdminId() {
return adminId;
}
public AdminRoleDO setAdminId(Integer adminId) {
this.adminId = adminId;
return this;
}
public Integer getRoleId() {
return roleId;
}
public AdminRoleDO setRoleId(Integer roleId) {
this.roleId = roleId;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/** /**
* 数据字典 * 数据字典
...@@ -11,6 +13,8 @@ import cn.iocoder.common.framework.dataobject.DeletableDO; ...@@ -11,6 +13,8 @@ import cn.iocoder.common.framework.dataobject.DeletableDO;
* value:1 男 * value:1 男
* value:2 女 * value:2 女
*/ */
@Data
@Accessors(chain = true)
public class DataDictDO extends DeletableDO { public class DataDictDO extends DeletableDO {
/** /**
...@@ -38,57 +42,4 @@ public class DataDictDO extends DeletableDO { ...@@ -38,57 +42,4 @@ public class DataDictDO extends DeletableDO {
*/ */
private String memo; private String memo;
public String getEnumValue() { }
return enumValue;
}
public DataDictDO setEnumValue(String enumValue) {
this.enumValue = enumValue;
return this;
}
public String getValue() {
return value;
}
public DataDictDO setValue(String value) {
this.value = value;
return this;
}
public String getDisplayName() {
return displayName;
}
public DataDictDO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Integer getSort() {
return sort;
}
public DataDictDO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public DataDictDO setMemo(String memo) {
this.memo = memo;
return this;
}
public Integer getId() {
return id;
}
public DataDictDO setId(Integer id) {
this.id = id;
return this;
}
}
\ No newline at end of file
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
/**
* OAUTH2 AccessToken
*/
@Data
@Accessors(chain = true)
public class OAuth2AccessTokenDO { public class OAuth2AccessTokenDO {
/** /**
...@@ -83,4 +91,4 @@ public class OAuth2AccessTokenDO { ...@@ -83,4 +91,4 @@ public class OAuth2AccessTokenDO {
return this; return this;
} }
} }
\ No newline at end of file
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
/** /**
...@@ -7,6 +10,8 @@ import java.util.Date; ...@@ -7,6 +10,8 @@ import java.util.Date;
* *
* idx_uid * idx_uid
*/ */
@Data
@Accessors(chain = true)
public class OAuth2RefreshTokenDO { public class OAuth2RefreshTokenDO {
/** /**
...@@ -30,49 +35,4 @@ public class OAuth2RefreshTokenDO { ...@@ -30,49 +35,4 @@ public class OAuth2RefreshTokenDO {
*/ */
private Date createTime; private Date createTime;
public String getId() {
return id;
}
public OAuth2RefreshTokenDO setId(String id) {
this.id = id;
return this;
}
public Integer getAdminId() {
return adminId;
}
public OAuth2RefreshTokenDO setAdminId(Integer adminId) {
this.adminId = adminId;
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;
}
} }
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date; import java.util.Date;
/** /**
* 资源实体 * 资源实体
*/ */
@Data
@Accessors(chain = true)
public class ResourceDO extends DeletableDO { public class ResourceDO extends DeletableDO {
/** /**
...@@ -58,76 +62,4 @@ public class ResourceDO extends DeletableDO { ...@@ -58,76 +62,4 @@ public class ResourceDO extends DeletableDO {
*/ */
private String handler; private String handler;
public Integer getId() {
return id;
}
public ResourceDO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public ResourceDO setName(String name) {
this.name = name;
return this;
}
public Integer getType() {
return type;
}
public ResourceDO setType(Integer type) {
this.type = type;
return this;
}
public Integer getSort() {
return sort;
}
public ResourceDO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getDisplayName() {
return displayName;
}
public ResourceDO setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public Date getCreateTime() {
return createTime;
}
public ResourceDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Integer getPid() {
return pid;
}
public ResourceDO setPid(Integer pid) {
this.pid = pid;
return this;
}
public String getHandler() {
return handler;
}
public ResourceDO setHandler(String handler) {
this.handler = handler;
return this;
}
} }
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/** /**
* 角色实体 * 角色实体
*/ */
@Data
@Accessors(chain = true)
public class RoleDO extends DeletableDO { public class RoleDO extends DeletableDO {
/** /**
...@@ -16,22 +20,4 @@ public class RoleDO extends DeletableDO { ...@@ -16,22 +20,4 @@ public class RoleDO extends DeletableDO {
*/ */
private String name; private String name;
public Integer getId() {
return id;
}
public RoleDO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public RoleDO setName(String name) {
this.name = name;
return this;
}
} }
package cn.iocoder.mall.admin.dataobject; package cn.iocoder.mall.admin.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/** /**
* {@link RoleDO} 和 {@link ResourceDO} 的关联表 * {@link RoleDO} 和 {@link ResourceDO} 的关联表
*/ */
@Data
@Accessors(chain = true)
public class RoleResourceDO extends DeletableDO { public class RoleResourceDO extends DeletableDO {
/** /**
...@@ -20,31 +24,4 @@ public class RoleResourceDO extends DeletableDO { ...@@ -20,31 +24,4 @@ public class RoleResourceDO extends DeletableDO {
*/ */
private Integer resourceId; private Integer resourceId;
public Integer getId() { }
return id;
}
public RoleResourceDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getRoleId() {
return roleId;
}
public RoleResourceDO setRoleId(Integer roleId) {
this.roleId = roleId;
return this;
}
public Integer getResourceId() {
return resourceId;
}
public RoleResourceDO setResourceId(Integer resourceId) {
this.resourceId = resourceId;
return this;
}
}
\ No newline at end of file
...@@ -79,11 +79,6 @@ ...@@ -79,11 +79,6 @@
<artifactId>springfox-swagger-ui</artifactId> <artifactId>springfox-swagger-ui</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -12,16 +12,17 @@ ...@@ -12,16 +12,17 @@
<artifactId>promotion-service-api</artifactId> <artifactId>promotion-service-api</artifactId>
<dependencies> <dependencies>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>
<dependency> <dependency>
<groupId>cn.iocoder.mall</groupId> <groupId>cn.iocoder.mall</groupId>
<artifactId>common-framework</artifactId> <artifactId>common-framework</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.mapstruct</groupId> <groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher --> <artifactId>mapstruct</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher -->
...@@ -30,7 +31,6 @@ ...@@ -30,7 +31,6 @@
<groupId>org.mapstruct</groupId> <groupId>org.mapstruct</groupId>
<artifactId>mapstruct-jdk8</artifactId> <artifactId>mapstruct-jdk8</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
......
...@@ -47,11 +47,6 @@ ...@@ -47,11 +47,6 @@
<artifactId>mybatis-spring-boot-starter</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论