package com.zhgd.xmgl.modules.basicdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * @Description: 用户角色
 * @author： pds
 * @date： 2023-02-16
 * @version： V1.0
 */
@Data
@TableName("system_user_role")
@ApiModel(value = "SystemUserRole实体类", description = "SystemUserRole")
public class SystemUserRole implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户角色id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "用户角色id(主键ID)")
    private Long id;
    /**
     * 用户id
     */
    @Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String userId;
    /**
     * 角色id
     */
    @Excel(name = "角色id", width = 15)
    @ApiModelProperty(value = "角色id")
    private Long roleId;
}
