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 menuIds; public RoleDetailResponse(SystemRole role, List 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 getMenuIds() { return menuIds; } }