whyczh
2021-05-10 65e448a1540efe51f74b79966c925ea58ea3be0a
src/main/java/com/whyc/pojo/Role.java
@@ -2,19 +2,35 @@
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import java.util.Date;
/**
 * 角色
 */
@Alias("Role")
@Data
@AllArgsConstructor
@TableName( schema = "`db_3.5mw_web`",value = "tb_role")
@ApiModel
public class Role {
    private Integer id;
    @TableField("name")
    @ApiModelProperty("权限组名称-编码")
    private String name;
    /**中文名*/
    @ApiModelProperty("权限组名称-中文")
    private String label;
    @ApiModelProperty("权限描述")
    private String description;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("状态:0未启用,1启用")
    private Integer state;
    public Role() {
    }
@@ -24,27 +40,4 @@
        this.name = name;
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getLabel() {
        return label;
    }
    public void setLabel(String label) {
        this.label = label;
    }
}