package org.jeecg.modules.workorderUser.entity;

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

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 lombok.Data;
import org.jeecg.modules.workorderPermissionRole.entity.WorkorderPermissionRole;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 用户信息表
 * @Author: jeecg-boot
 * @Date:   2024-11-28
 * @Version: V1.0
 */
@Data
@TableName("workorder_user")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="workorder_user对象", description="用户信息表")
public class WorkorderUser implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**用户名称*/
	@Excel(name = "用户名称", width = 15)
    @ApiModelProperty(value = "用户名称")
    private java.lang.String name;
	/**用户密码*/
	@Excel(name = "用户密码", width = 15)
    @ApiModelProperty(value = "用户密码")
    private java.lang.String password;
	/**用户头像*/
	@Excel(name = "用户头像", width = 15)
    @ApiModelProperty(value = "用户头像")
    private java.lang.String image;
	/**关联角色id*/
	@Excel(name = "关联角色id", width = 15, dictTable = "workorder_role", dicText = "name", dicCode = "id")
	@Dict(dictTable = "workorder_role", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "关联角色id")
    private java.lang.String roleId;

    //角色名称
    @TableField(exist = false)
    private java.lang.String roleName;

    //角色权限列表
    @TableField(exist = false)
    private List<WorkorderPermissionRole> permissionRoleList;
}
