package com.ycl.entity.user; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.*; import java.io.Serializable; import java.util.Date; /** *
* 后台用户角色表 *
* * @author lyq * @since 2022-09-06 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("ums_role") @ApiModel(value="UmsRole对象", description="后台用户角色表") @Builder @NoArgsConstructor @AllArgsConstructor public class UmsRole implements Serializable { private static final long serialVersionUID=1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @ApiModelProperty(value = "名称") private String name; @ApiModelProperty(value = "角色类型") private Long type; @ApiModelProperty(value = "描述") private String description; @ApiModelProperty(value = "后台用户数量") private Integer adminCount; @ApiModelProperty(value = "创建时间") private Date createTime; @ApiModelProperty(value = "启用状态:0->禁用;1->启用") private Integer status; private Integer sort; private String code; @ApiModelProperty(value = "角色类型文本") @TableField(exist = false) private String typeText; }