mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 13:42:07 +08:00
菜单权限编辑放开菜单数量限制
This commit is contained in:
-2
@@ -32,8 +32,6 @@ public class TenantPackageSaveReqVO {
|
|||||||
|
|
||||||
@Schema(description = "关联的菜单编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "关联的菜单编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotNull(message = "关联的菜单编号不能为空")
|
@NotNull(message = "关联的菜单编号不能为空")
|
||||||
// todo 目前可用菜单数量大概在两百出头,暂时设置为300,后期扩展可以调整
|
|
||||||
@Size(max = 300, message = "关联的菜单编号数量不能超过300个")
|
|
||||||
private Set<Long> menuIds;
|
private Set<Long> menuIds;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
-3
@@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
@@ -17,8 +16,6 @@ public class PermissionAssignRoleMenuReqVO {
|
|||||||
private Long roleId;
|
private Long roleId;
|
||||||
|
|
||||||
@Schema(description = "菜单编号列表", example = "1,3,5")
|
@Schema(description = "菜单编号列表", example = "1,3,5")
|
||||||
// todo 目前可用菜单数量大概在两百出头,暂时设置为300,后期扩展可以调整
|
|
||||||
@Size(max = 300, message = "关联的菜单编号数量不能超过300个")
|
|
||||||
private Set<Long> menuIds = Collections.emptySet(); // 兜底
|
private Set<Long> menuIds = Collections.emptySet(); // 兜底
|
||||||
|
|
||||||
@Schema(description = "组织id")
|
@Schema(description = "组织id")
|
||||||
|
|||||||
Reference in New Issue
Block a user