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.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.infrastructure.handler.UuidTypeHandler;
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.NoArgsConstructor;
import lombok.experimental.Accessors;

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

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

    /*
     * 数据库字段
     */

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


    /**
     * 功能ID
     */
    @Excel(name = "功能ID")
    @ApiModelProperty(value = "功能ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String funUuid;


    /**
     * 应用代码
     */
    @Excel(name = "应用代码")
    @ApiModelProperty(value = "应用代码")
    private String appCode;


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


    /**
     * @desc   : 功能idList
     * @author : 夏常明
     * @date   : 2023/1/4 17:55
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "功能idList")
    private List<String> funUuIdList;

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

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


    private static final long serialVersionUID = 1L;

}
