change 修改实体

This commit is contained in:
寻欢·李 2018-03-21 11:21:40 +08:00
parent 373d141314
commit 395a482daf
10 changed files with 23 additions and 406 deletions

View File

@ -1,18 +1,13 @@
package com.github.pig.admin.model.dto; package com.github.pig.admin.model.dto;
import lombok.Data;
/** /**
* @author lengleng * @author lengleng
* @date 2018/1/20 * @date 2018/1/20
* 部门树 * 部门树
*/ */
@Data
public class DeptTree extends TreeNode { public class DeptTree extends TreeNode {
private String name; private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -1,9 +1,12 @@
package com.github.pig.admin.model.dto; package com.github.pig.admin.model.dto;
import lombok.Data;
/** /**
* @author lengleng * @author lengleng
* @date 2017年11月9日23:33:27 * @date 2017年11月9日23:33:27
*/ */
@Data
public class MenuTree extends TreeNode { public class MenuTree extends TreeNode {
private String icon; private String icon;
private String name; private String name;
@ -15,56 +18,7 @@ public class MenuTree extends TreeNode {
private String redirect; private String redirect;
private String code; private String code;
private String type; private String type;
private String label;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getComponent() {
return component;
}
public void setComponent(String component) {
this.component = component;
}
public String getAuthority() {
return authority;
}
public void setAuthority(String authority) {
this.authority = authority;
}
public String getRedirect() {
return redirect;
}
public void setRedirect(String redirect) {
this.redirect = redirect;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
String label;
public MenuTree() { public MenuTree() {
} }
@ -82,44 +36,4 @@ public class MenuTree extends TreeNode {
this.name = name; this.name = name;
this.label = name; this.label = name;
} }
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public boolean isSpread() {
return spread;
}
public void setSpread(boolean spread) {
this.spread = spread;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
} }

View File

@ -1,12 +1,14 @@
package com.github.pig.admin.model.dto; package com.github.pig.admin.model.dto;
import com.github.pig.admin.model.entity.SysRole; import com.github.pig.admin.model.entity.SysRole;
import lombok.Data;
/** /**
* @author lengleng * @author lengleng
* @date 2018/1/20 * @date 2018/1/20
* 角色Dto * 角色Dto
*/ */
@Data
public class RoleDto extends SysRole { public class RoleDto extends SysRole {
/** /**
* 角色部门Id * 角色部门Id
@ -17,20 +19,4 @@ public class RoleDto extends SysRole {
* 部门名称 * 部门名称
*/ */
private String deptName; private String deptName;
public Integer getRoleDeptId() {
return roleDeptId;
}
public void setRoleDeptId(Integer roleDeptId) {
this.roleDeptId = roleDeptId;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
} }

View File

@ -1,5 +1,7 @@
package com.github.pig.admin.model.dto; package com.github.pig.admin.model.dto;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.Map; import java.util.Map;
@ -7,6 +9,7 @@ import java.util.Map;
* @author lengleng * @author lengleng
* @date 2017/11/7 * @date 2017/11/7
*/ */
@Data
public class RouteConfig implements Serializable{ public class RouteConfig implements Serializable{
@com.alibaba.fastjson.annotation.JSONField(name = "path") @com.alibaba.fastjson.annotation.JSONField(name = "path")
@ -33,100 +36,4 @@ public class RouteConfig implements Serializable{
private Boolean caseSensitive; private Boolean caseSensitive;
@com.alibaba.fastjson.annotation.JSONField(name = "pathToRegexpOptions") @com.alibaba.fastjson.annotation.JSONField(name = "pathToRegexpOptions")
private String pathToRegexpOptions; private String pathToRegexpOptions;
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getComponent() {
return component;
}
public void setComponent(String component) {
this.component = component;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getComponents() {
return components;
}
public void setComponents(String components) {
this.components = components;
}
public String getRedirect() {
return redirect;
}
public void setRedirect(String redirect) {
this.redirect = redirect;
}
public String getProps() {
return props;
}
public void setProps(String props) {
this.props = props;
}
public String getAlias() {
return alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public String getChildren() {
return children;
}
public void setChildren(String children) {
this.children = children;
}
public String getBeforeEnter() {
return beforeEnter;
}
public void setBeforeEnter(String beforeEnter) {
this.beforeEnter = beforeEnter;
}
public Map<String, String> getMeta() {
return meta;
}
public void setMeta(Map<String, String> meta) {
this.meta = meta;
}
public Boolean isCaseSensitive() {
return caseSensitive;
}
public void setCaseSensitive(Boolean caseSensitive) {
this.caseSensitive = caseSensitive;
}
public String getPathToRegexpOptions() {
return pathToRegexpOptions;
}
public void setPathToRegexpOptions(String pathToRegexpOptions) {
this.pathToRegexpOptions = pathToRegexpOptions;
}
} }

View File

@ -10,32 +10,7 @@ import java.util.List;
public class TreeNode { public class TreeNode {
protected int id; protected int id;
protected int parentId; protected int parentId;
protected List<TreeNode> children = new ArrayList<TreeNode>();
public List<TreeNode> getChildren() {
return children;
}
public void setChildren(List<TreeNode> children) {
this.children = children;
}
List<TreeNode> children = new ArrayList<TreeNode>();
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getParentId() {
return parentId;
}
public void setParentId(int parentId) {
this.parentId = parentId;
}
public void add(TreeNode node) { public void add(TreeNode node) {
children.add(node); children.add(node);

View File

@ -1,11 +1,13 @@
package com.github.pig.admin.model.dto; package com.github.pig.admin.model.dto;
import com.github.pig.admin.model.entity.SysUser; import com.github.pig.admin.model.entity.SysUser;
import lombok.Data;
/** /**
* @author lengleng * @author lengleng
* @date 2017/11/5 * @date 2017/11/5
*/ */
@Data
public class UserDto extends SysUser { public class UserDto extends SysUser {
/** /**
* 角色ID * 角色ID
@ -18,21 +20,4 @@ public class UserDto extends SysUser {
* 新密码 * 新密码
*/ */
private String newpassword1; private String newpassword1;
public Integer getRole() {
return role;
}
public void setRole(Integer role) {
this.role = role;
}
public String getNewpassword1() {
return newpassword1;
}
public void setNewpassword1(String newpassword1) {
this.newpassword1 = newpassword1;
}
} }

View File

@ -1,6 +1,7 @@
package com.github.pig.admin.model.dto; package com.github.pig.admin.model.dto;
import com.github.pig.admin.model.entity.SysUser; import com.github.pig.admin.model.entity.SysUser;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -14,6 +15,7 @@ import java.io.Serializable;
* commit('SET_INTRODUCTION', data) * commit('SET_INTRODUCTION', data)
* commit('SET_PERMISSIONS', data) * commit('SET_PERMISSIONS', data)
*/ */
@Data
public class UserInfo implements Serializable { public class UserInfo implements Serializable {
/** /**
* 用户基本信息 * 用户基本信息
@ -28,28 +30,4 @@ public class UserInfo implements Serializable {
* 角色集合 * 角色集合
*/ */
private String[] roles; private String[] roles;
public String[] getPermissions() {
return permissions;
}
public void setPermissions(String[] permissions) {
this.permissions = permissions;
}
public String[] getRoles() {
return roles;
}
public void setRoles(String[] roles) {
this.roles = roles;
}
public SysUser getSysUser() {
return sysUser;
}
public void setSysUser(SysUser sysUser) {
this.sysUser = sysUser;
}
} }

View File

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType; import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
@ -17,6 +18,7 @@ import java.util.Date;
* @author lengleng * @author lengleng
* @since 2018-01-22 * @since 2018-01-22
*/ */
@Data
@TableName("sys_dept") @TableName("sys_dept")
public class SysDept extends Model<SysDept> { public class SysDept extends Model<SysDept> {
@ -53,62 +55,6 @@ public class SysDept extends Model<SysDept> {
private Integer parentId; private Integer parentId;
public Integer getDeptId() {
return deptId;
}
public void setDeptId(Integer deptId) {
this.deptId = deptId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getOrderNum() {
return orderNum;
}
public void setOrderNum(Integer orderNum) {
this.orderNum = orderNum;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
@Override @Override
protected Serializable pkVal() { protected Serializable pkVal() {
return this.deptId; return this.deptId;

View File

@ -2,6 +2,7 @@ package com.github.pig.admin.model.entity;
import com.baomidou.mybatisplus.activerecord.Model; import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -13,6 +14,7 @@ import java.io.Serializable;
* @author lengleng * @author lengleng
* @since 2018-01-22 * @since 2018-01-22
*/ */
@Data
@TableName("sys_dept_relation") @TableName("sys_dept_relation")
public class SysDeptRelation extends Model<SysDeptRelation> { public class SysDeptRelation extends Model<SysDeptRelation> {
@ -28,22 +30,6 @@ public class SysDeptRelation extends Model<SysDeptRelation> {
private Integer descendant; private Integer descendant;
public Integer getAncestor() {
return ancestor;
}
public void setAncestor(Integer ancestor) {
this.ancestor = ancestor;
}
public Integer getDescendant() {
return descendant;
}
public void setDescendant(Integer descendant) {
this.descendant = descendant;
}
@Override @Override
protected Serializable pkVal() { protected Serializable pkVal() {
return this.ancestor; return this.ancestor;

View File

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType; import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
@ -17,6 +18,7 @@ import java.util.Date;
* @author lengleng * @author lengleng
* @since 2017-10-29 * @since 2017-10-29
*/ */
@Data
@TableName("sys_role") @TableName("sys_role")
public class SysRole extends Model<SysRole> { public class SysRole extends Model<SysRole> {
@ -40,63 +42,6 @@ public class SysRole extends Model<SysRole> {
@TableField("del_flag") @TableField("del_flag")
private String delFlag; private String delFlag;
public Integer getRoleId() {
return roleId;
}
public void setRoleId(Integer roleId) {
this.roleId = roleId;
}
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
public String getRoleCode() {
return roleCode;
}
public void setRoleCode(String roleCode) {
this.roleCode = roleCode;
}
public String getRoleDesc() {
return roleDesc;
}
public void setRoleDesc(String roleDesc) {
this.roleDesc = roleDesc;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
@Override @Override
protected Serializable pkVal() { protected Serializable pkVal() {
return this.roleId; return this.roleId;