skyouc
6 天以前 de010011aa92785f04b6f0345411c584d49a92d4
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
35
36
37
38
39
40
package com.vincent.rsf.server.system.entity;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
 
@Data
@TableName("sys_user_role")
public class UserRole implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @ApiModelProperty(value= "")
    private Long userId;
 
    @ApiModelProperty(value= "")
    private Long roleId;
 
    public UserRole() {}
 
    public UserRole(Long userId,Long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
 
//    UserRole userRole = new UserRole(
//            null,    // [非空]
//            null    // [非空]
//    );
 
 
}