xiangpei
2025-06-03 95f8eda23ff06243e68d33769c5e68f6f6de2c4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package cn.lili.modules.permission.entity.dos;
 
import cn.lili.mybatis.BaseIdEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
/**
 * 用户角色
 *
 * @author Chopper
 * @since 2020/11/19 12:18
 */
@Data
@TableName("li_user_role")
@ApiModel(value = "用户角色")
public class UserRole extends BaseIdEntity {
 
    @ApiModelProperty(value = "用户唯一id")
    private String userId;
 
    @ApiModelProperty(value = "角色唯一id")
    private String roleId;
 
    public UserRole(String userId, String roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
 
    public UserRole() {
 
    }
}