50 lines
1.2 KiB
Java
50 lines
1.2 KiB
Java
package com.gxwebsoft.common.system.entity;
|
|
|
|
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 io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import lombok.Data;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* 用户角色
|
|
*
|
|
* @author WebSoft
|
|
* @since 2018-12-24 16:10:23
|
|
*/
|
|
@Data
|
|
@ApiModel(description = "用户角色")
|
|
@TableName("sys_user_role")
|
|
public class UserRole implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@ApiModelProperty("主键id")
|
|
@TableId(type = IdType.AUTO)
|
|
private Integer id;
|
|
|
|
@ApiModelProperty("用户id")
|
|
private Integer userId;
|
|
|
|
@ApiModelProperty("角色id")
|
|
private Integer roleId;
|
|
|
|
@ApiModelProperty("创建时间")
|
|
private Date createTime;
|
|
|
|
@ApiModelProperty("修改时间")
|
|
private Date updateTime;
|
|
|
|
@ApiModelProperty("角色名称")
|
|
@TableField(exist = false)
|
|
private String roleName;
|
|
|
|
@ApiModelProperty("租户ID")
|
|
private Integer tenantId;
|
|
|
|
}
|