权限修改
This commit is contained in:
@@ -11,9 +11,14 @@ public record RoleAddDTO(
|
||||
String name,
|
||||
// 角色级别
|
||||
Integer level,
|
||||
// 菜单id
|
||||
@NotEmpty(message = "菜单id不能为空")
|
||||
List<Long> menuIdList,
|
||||
/**
|
||||
* 管理员菜单id
|
||||
*/
|
||||
List<Long> adminMenuIdList,
|
||||
/**
|
||||
* 收银机菜单id
|
||||
*/
|
||||
List<Long> cashMenuIdList,
|
||||
// 描述
|
||||
String description
|
||||
) {
|
||||
|
||||
@@ -20,8 +20,14 @@ public class RoleEditDTO {
|
||||
// 角色等级
|
||||
private Integer level;
|
||||
// 菜单id
|
||||
@NotNull
|
||||
private List<Long> menuIdList;
|
||||
/**
|
||||
* 管理员菜单id
|
||||
*/
|
||||
List<Long> adminMenuIdList;
|
||||
/**
|
||||
* 收银机菜单id
|
||||
*/
|
||||
List<Long> cashMenuIdList;
|
||||
// 描述
|
||||
private String description;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user