123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- package com.usky.entity.sys;
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import javax.persistence.*;
- import java.io.Serializable;
- import java.sql.Timestamp;
- import java.util.Objects;
- /**
- * @author laowo
- * @version v1.0
- * @date 2021/8/19 14:03
- * @description TODO
- **/
- @Entity
- @Table(name = "sys_role", schema = "jx_cover", catalog = "")
- @ApiModel(value = "角色DTO")
- public class SysRoleDTO implements Serializable {
- @ApiModelProperty("角色id")
- private Integer roleId;
- @ApiModelProperty("角色名称")
- private String roleName;
- @ApiModelProperty("角色权限字符")
- private String roleKey;
- @ApiModelProperty("角色显示排序")
- private int roleSort;
- @ApiModelProperty("数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)")
- private String dataScope;
- @ApiModelProperty("角色状态(0正常 1停用)")
- private String status;
- @ApiModelProperty("删除标志(0代表存在 1代表删除)")
- private String delFlag;
- @ApiModelProperty("创建人")
- private String createBy;
- @ApiModelProperty("创建时间")
- private Timestamp createTime;
- @ApiModelProperty("更新人")
- private String updateBy;
- @ApiModelProperty("更新时间")
- private Timestamp updateTime;
- @ApiModelProperty("备注")
- private String remark;
- @Id
- @Column(name = "role_id", nullable = false)
- @GeneratedValue(strategy=GenerationType.IDENTITY)
- public Integer getRoleId() {
- return roleId;
- }
- public void setRoleId(Integer roleId) {
- this.roleId = roleId;
- }
- @Basic
- @Column(name = "role_name", nullable = false, length = 30)
- public String getRoleName() {
- return roleName;
- }
- public void setRoleName(String roleName) {
- this.roleName = roleName;
- }
- @Basic
- @Column(name = "role_key", nullable = false, length = 100)
- public String getRoleKey() {
- return roleKey;
- }
- public void setRoleKey(String roleKey) {
- this.roleKey = roleKey;
- }
- @Basic
- @Column(name = "role_sort", nullable = false)
- public int getRoleSort() {
- return roleSort;
- }
- public void setRoleSort(int roleSort) {
- this.roleSort = roleSort;
- }
- @Basic
- @Column(name = "data_scope", nullable = true, length = 1)
- public String getDataScope() {
- return dataScope;
- }
- public void setDataScope(String dataScope) {
- this.dataScope = dataScope;
- }
- @Basic
- @Column(name = "status", nullable = false, length = 1)
- public String getStatus() {
- return status;
- }
- public void setStatus(String status) {
- this.status = status;
- }
- @Basic
- @Column(name = "del_flag", nullable = true, length = 1)
- public String getDelFlag() {
- return delFlag;
- }
- public void setDelFlag(String delFlag) {
- this.delFlag = delFlag;
- }
- @Basic
- @Column(name = "create_by", nullable = true, length = 64)
- public String getCreateBy() {
- return createBy;
- }
- public void setCreateBy(String createBy) {
- this.createBy = createBy;
- }
- @Basic
- @Column(name = "create_time", nullable = true)
- public Timestamp getCreateTime() {
- return createTime;
- }
- public void setCreateTime(Timestamp createTime) {
- this.createTime = createTime;
- }
- @Basic
- @Column(name = "update_by", nullable = true, length = 64)
- public String getUpdateBy() {
- return updateBy;
- }
- public void setUpdateBy(String updateBy) {
- this.updateBy = updateBy;
- }
- @Basic
- @Column(name = "update_time", nullable = true)
- public Timestamp getUpdateTime() {
- return updateTime;
- }
- public void setUpdateTime(Timestamp updateTime) {
- this.updateTime = updateTime;
- }
- @Basic
- @Column(name = "remark", nullable = true, length = 500)
- public String getRemark() {
- return remark;
- }
- public void setRemark(String remark) {
- this.remark = remark;
- }
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- SysRoleDTO that = (SysRoleDTO) o;
- return roleId == that.roleId && roleSort == that.roleSort && Objects.equals(roleName, that.roleName) && Objects.equals(roleKey, that.roleKey) && Objects.equals(dataScope, that.dataScope) && Objects.equals(status, that.status) && Objects.equals(delFlag, that.delFlag) && Objects.equals(createBy, that.createBy) && Objects.equals(createTime, that.createTime) && Objects.equals(updateBy, that.updateBy) && Objects.equals(updateTime, that.updateTime) && Objects.equals(remark, that.remark);
- }
- @Override
- public int hashCode() {
- return Objects.hash(roleId, roleName, roleKey, roleSort, dataScope, status, delFlag, createBy, createTime, updateBy, updateTime, remark);
- }
- }
|