liujie
2026-09-11 4f6f15b818704079ff2e4e4719b798f48d68a335
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
package com.tourguide.modules.system.dto;
 
import com.tourguide.modules.system.entity.SystemRole;
import java.util.List;
 
public class RoleDetailResponse {
    private final Long id;
    private final String roleName;
    private final String remark;
    private final boolean builtIn;
    private final List<Long> menuIds;
 
    public RoleDetailResponse(SystemRole role, List<Long> menuIds) {
        this.id = role.getId();
        this.roleName = role.getRoleName();
        this.remark = role.getRemark();
        this.builtIn = "ADMIN".equals(role.getRoleCode());
        this.menuIds = menuIds;
    }
 
    public Long getId() { return id; }
    public String getRoleName() { return roleName; }
    public String getRemark() { return remark; }
    public boolean isBuiltIn() { return builtIn; }
    public List<Long> getMenuIds() { return menuIds; }
}