RoleMenu.java
1.05 KB
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
41
42
43
package com.huaheng.pc.system.role.domain;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 角色和菜单关联 sys_role_menu
*
* @author huaheng
*/
@ApiModel(value="com.huaheng.pc.system.role.domain.RoleMenu")
@Data
@TableName(value = "sys_role_menu")
public class RoleMenu implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "id")
private Integer id;
@ApiModelProperty(value = "roleId")
@TableField(value = "roleId")
private Integer roleId;
@ApiModelProperty(value = "menuId")
@TableField(value = "menuId")
private Integer menuId;
@Override
public boolean equals(Object obj) {
RoleMenu roleMenu = (RoleMenu) obj;
if (roleMenu.getMenuId().intValue() == menuId.intValue() &&
roleMenu.getRoleId().intValue() == roleId.intValue()) {
return true;
}
return false;
}
}