package com.dk.mdm.model.vo.core;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.model.pojo.PageInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 *  角色
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ExportTitle("角色")
@TableName(value = "t_role", autoResultMap = true)
@ApiModel(value="实体类：角色", description="表名：t_role")
public class RoleVO extends PageInfo<RoleVO> implements Serializable {

    /*
     * 数据库字段
     */

    /**
     * 角色ID
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    @ApiModelProperty(value = "角色ID")
    private Integer roleId;


    /**
     * 角色名称
     */
    @Excel(name = "角色名称")
    @ApiModelProperty(value = "角色名称")
    private String roleName;


    /**
     * 显示顺序
     */
    @Excel(name = "显示顺序")
    @ApiModelProperty(value = "显示顺序")
    private Integer displayNo;


    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remarks;


    /**
     * 有效标识 (1：正常 0：停用)
     */
    @Excel(name = "有效标识 (1：正常 0：停用)")
    @ApiModelProperty(value = "有效标识 (1：正常 0：停用)")
    private Boolean flgValid;


    /**
     * 工厂ID
     */
    @Excel(name = "工厂ID")
    @ApiModelProperty(value = "工厂ID")
    private Integer ftyId;

    /**
     * 角色ID
     */
    @Excel(name = "用户角色ID")
    @ApiModelProperty(value = "用户角色 ID")
    private Integer userRoleId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 操作类型
     */
    @Excel(name = "操作类型")
    @ApiModelProperty(value = "操作类型")
    private String type;




    /*
     * 相关属性
     * @TableField(exist = false)
     */

    /*
     * 关联属性 + 查询条件
     * @TableField(exist = false)
     */

    @ApiModelProperty(value = "用户id集合")
    private List<Integer> userIdList;


    private static final long serialVersionUID = 1L;

}
