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    // [非空] 
 | 
//    ); 
 | 
  
 | 
  
 | 
} 
 |