package com.dk.mdm.model.pojo.mst;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.infrastructure.handler.*;
import com.dk.common.model.pojo.PageInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.time.LocalDateTime;

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

    /*
     * 数据库字段
     */

    /**
     * 角色ID
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    @ApiModelProperty(value = "角色ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String 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")
    @TableField(fill = FieldFill.INSERT)
    private Integer cpId;


    /**
     * 创建时间 (触发器自动处理)
     */
    @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @ApiModelProperty(value = "创建时间 (触发器自动处理)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opCreateTime;


    /**
     * 创建用户 (触发器自动处理)
     */
    @Excel(name = "创建用户 (触发器自动处理)")
    @ApiModelProperty(value = "创建用户 (触发器自动处理)")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String opCreateUserId;


    @Excel(name = "", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @ApiModelProperty(value = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opUpdateTime;


    @ApiModelProperty(value = "")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String opUpdateUserId;


    @ApiModelProperty(value = "")
    private String opAppCode;


    @ApiModelProperty(value = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opTimestamp;


    @ApiModelProperty(value = "")
    private String opDbUser;


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

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


    private static final long serialVersionUID = 1L;

}
