修改表结构.
This commit is contained in:
@@ -29,8 +29,8 @@ public class ${type}CreateRequest implements Serializable {
|
||||
#foreach($field in ${table.fields})
|
||||
#if("$!field.propertyName" != "id")
|
||||
#if("$field.propertyType" == "String")
|
||||
@Size(max = $field.metaInfo.length)
|
||||
@NotBlank
|
||||
@Size(max = $field.metaInfo.length)
|
||||
#else
|
||||
@NotNull
|
||||
#end
|
||||
|
||||
@@ -28,8 +28,8 @@ public class ${type}UpdateRequest implements Serializable {
|
||||
#foreach($field in ${table.fields})
|
||||
|
||||
#if("$field.propertyType" == "String")
|
||||
@Size(max = $field.metaInfo.length)
|
||||
@NotBlank
|
||||
@Size(max = $field.metaInfo.length)
|
||||
#else
|
||||
@NotNull
|
||||
#end
|
||||
|
||||
@@ -52,10 +52,10 @@ public class SystemMenuDTO implements Serializable {
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "路由地址")
|
||||
@Schema(description = "链接地址")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "组件地址")
|
||||
@Schema(description = "组件名称")
|
||||
private String component;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
|
||||
@@ -66,11 +66,11 @@ public class SystemMenuDO extends BaseDO {
|
||||
@TableField("icon")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "路由地址")
|
||||
@Schema(description = "链接地址")
|
||||
@TableField("path")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "组件地址")
|
||||
@Schema(description = "组件名称")
|
||||
@TableField("component")
|
||||
private String component;
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@ public class SystemMenuCacheDTO {
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "路由地址")
|
||||
@Schema(description = "链接地址")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "组件地址")
|
||||
@Schema(description = "组件名称")
|
||||
private String component;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
package com.orion.ops.module.infra.entity.request;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 菜单 创建请求对象
|
||||
*
|
||||
* @author Jiahang Li
|
||||
* @version 1.0.0
|
||||
* @since 2023-7-18 10:18
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "SystemMenuCreateRequest", description = "菜单 创建请求对象")
|
||||
public class SystemMenuCreateRequest implements Serializable {
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "父id")
|
||||
private Long parentId;
|
||||
|
||||
@Size(max = 32)
|
||||
@NotBlank
|
||||
@Schema(description = "菜单名称")
|
||||
private String name;
|
||||
|
||||
@Size(max = 64)
|
||||
@NotBlank
|
||||
@Schema(description = "菜单权限")
|
||||
private String permission;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "菜单类型 1父菜单 2子菜单 3功能")
|
||||
private Integer type;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "排序")
|
||||
private Integer sort;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "是否可见 0不可见 1可见")
|
||||
private Integer visible;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "菜单状态 0停用 1启用")
|
||||
private Integer status;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "菜单缓存 0不缓存 1缓存")
|
||||
private Integer cache;
|
||||
|
||||
@Size(max = 64)
|
||||
@NotBlank
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Size(max = 256)
|
||||
@NotBlank
|
||||
@Schema(description = "路由地址")
|
||||
private String path;
|
||||
|
||||
@Size(max = 128)
|
||||
@NotBlank
|
||||
@Schema(description = "组件地址")
|
||||
private String component;
|
||||
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
package com.orion.ops.module.infra.entity.request;
|
||||
|
||||
import com.orion.ops.framework.common.entity.PageRequest;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
/**
|
||||
* 菜单 查询请求对象
|
||||
*
|
||||
* @author Jiahang Li
|
||||
* @version 1.0.0
|
||||
* @since 2023-7-18 10:18
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(name = "SystemMenuQueryRequest", description = "菜单 查询请求对象")
|
||||
public class SystemMenuQueryRequest extends PageRequest {
|
||||
|
||||
@Schema(description = "id")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "父id")
|
||||
private Long parentId;
|
||||
|
||||
@Size(max = 32)
|
||||
@Schema(description = "菜单名称")
|
||||
private String name;
|
||||
|
||||
@Size(max = 64)
|
||||
@Schema(description = "菜单权限")
|
||||
private String permission;
|
||||
|
||||
@Schema(description = "菜单类型 1父菜单 2子菜单 3功能")
|
||||
private Integer type;
|
||||
|
||||
@Schema(description = "排序")
|
||||
private Integer sort;
|
||||
|
||||
@Schema(description = "是否可见 0不可见 1可见")
|
||||
private Integer visible;
|
||||
|
||||
@Schema(description = "菜单状态 0停用 1启用")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "菜单缓存 0不缓存 1缓存")
|
||||
private Integer cache;
|
||||
|
||||
@Size(max = 64)
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Size(max = 256)
|
||||
@Schema(description = "路由地址")
|
||||
private String path;
|
||||
|
||||
@Size(max = 128)
|
||||
@Schema(description = "组件地址")
|
||||
private String component;
|
||||
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
package com.orion.ops.module.infra.entity.request;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 菜单 更新请求对象
|
||||
*
|
||||
* @author Jiahang Li
|
||||
* @version 1.0.0
|
||||
* @since 2023-7-18 10:18
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "SystemMenuUpdateRequest", description = "菜单 更新请求对象")
|
||||
public class SystemMenuUpdateRequest implements Serializable {
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "id")
|
||||
private Long id;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "父id")
|
||||
private Long parentId;
|
||||
|
||||
@Size(max = 32)
|
||||
@NotBlank
|
||||
@Schema(description = "菜单名称")
|
||||
private String name;
|
||||
|
||||
@Size(max = 64)
|
||||
@NotBlank
|
||||
@Schema(description = "菜单权限")
|
||||
private String permission;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "菜单类型 1父菜单 2子菜单 3功能")
|
||||
private Integer type;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "排序")
|
||||
private Integer sort;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "是否可见 0不可见 1可见")
|
||||
private Integer visible;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "菜单状态 0停用 1启用")
|
||||
private Integer status;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "菜单缓存 0不缓存 1缓存")
|
||||
private Integer cache;
|
||||
|
||||
@Size(max = 64)
|
||||
@NotBlank
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Size(max = 256)
|
||||
@NotBlank
|
||||
@Schema(description = "路由地址")
|
||||
private String path;
|
||||
|
||||
@Size(max = 128)
|
||||
@NotBlank
|
||||
@Schema(description = "组件地址")
|
||||
private String component;
|
||||
|
||||
}
|
||||
@@ -49,10 +49,10 @@ public class SystemMenuCreateRequest implements Serializable {
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "路由地址")
|
||||
@Schema(description = "链接地址")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "组件地址")
|
||||
@Schema(description = "组件名称")
|
||||
private String component;
|
||||
|
||||
}
|
||||
|
||||
@@ -46,10 +46,10 @@ public class SystemMenuUpdateRequest implements Serializable {
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "路由地址")
|
||||
@Schema(description = "链接地址")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "组件地址")
|
||||
@Schema(description = "组件名称")
|
||||
private String component;
|
||||
|
||||
}
|
||||
|
||||
@@ -29,8 +29,8 @@ public class SystemMenuValidFunctionRequest implements Serializable {
|
||||
@Schema(description = "父id")
|
||||
private Long parentId;
|
||||
|
||||
@Size(max = 32)
|
||||
@NotBlank
|
||||
@Size(max = 32)
|
||||
@Schema(description = "菜单名称")
|
||||
private String name;
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ public class SystemMenuValidMenuRequest implements Serializable {
|
||||
@Schema(description = "父id")
|
||||
private Long parentId;
|
||||
|
||||
@Size(max = 32)
|
||||
@NotBlank
|
||||
@Size(max = 32)
|
||||
@Schema(description = "菜单名称")
|
||||
private String name;
|
||||
|
||||
@@ -46,23 +46,20 @@ public class SystemMenuValidMenuRequest implements Serializable {
|
||||
@Schema(description = "是否可见 0不可见 1可见")
|
||||
private Integer visible;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "菜单缓存 0不缓存 1缓存")
|
||||
private Integer cache;
|
||||
|
||||
@Size(max = 64)
|
||||
@NotBlank
|
||||
@Size(max = 64)
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Size(max = 256)
|
||||
@NotBlank
|
||||
@Schema(description = "路由地址")
|
||||
@Schema(description = "链接地址")
|
||||
private String path;
|
||||
|
||||
@Size(max = 128)
|
||||
@NotBlank
|
||||
@Schema(description = "组件地址")
|
||||
@Schema(description = "组件名称")
|
||||
private String component;
|
||||
|
||||
}
|
||||
|
||||
@@ -24,13 +24,13 @@ import java.io.Serializable;
|
||||
@Schema(name = "SystemRoleCreateRequest", description = "角色 创建请求对象")
|
||||
public class SystemRoleCreateRequest implements Serializable {
|
||||
|
||||
@Size(max = 32)
|
||||
@NotBlank
|
||||
@Size(max = 32)
|
||||
@Schema(description = "角色名称")
|
||||
private String name;
|
||||
|
||||
@Size(max = 32)
|
||||
@NotBlank
|
||||
@Size(max = 32)
|
||||
@Schema(description = "角色编码")
|
||||
private String code;
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ public class SystemRoleUpdateRequest implements Serializable {
|
||||
@Schema(description = "id")
|
||||
private Long id;
|
||||
|
||||
@Size(max = 32)
|
||||
@NotBlank
|
||||
@Size(max = 32)
|
||||
@Schema(description = "角色名称")
|
||||
private String name;
|
||||
|
||||
|
||||
@@ -24,18 +24,18 @@ import java.io.Serializable;
|
||||
@Schema(name = "SystemUserCreateRequest", description = "用户 创建请求对象")
|
||||
public class SystemUserCreateRequest implements Serializable {
|
||||
|
||||
@Size(max = 32)
|
||||
@NotBlank
|
||||
@Size(max = 32)
|
||||
@Schema(description = "用户名")
|
||||
private String username;
|
||||
|
||||
@Size(max = 64)
|
||||
@NotBlank
|
||||
@Size(max = 64)
|
||||
@Schema(description = "密码")
|
||||
private String password;
|
||||
|
||||
@Size(max = 16)
|
||||
@NotBlank
|
||||
@Size(max = 16)
|
||||
@Schema(description = "花名")
|
||||
private String nickname;
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ public class SystemUserUpdateRequest implements Serializable {
|
||||
@Schema(description = "id")
|
||||
private Long id;
|
||||
|
||||
@Size(max = 16)
|
||||
@NotBlank
|
||||
@Size(max = 16)
|
||||
@Schema(description = "花名")
|
||||
private String nickname;
|
||||
|
||||
|
||||
@@ -55,10 +55,10 @@ public class SystemMenuVO implements Serializable {
|
||||
@Schema(description = "菜单图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "路由地址")
|
||||
@Schema(description = "链接地址")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "组件地址")
|
||||
@Schema(description = "组件名称")
|
||||
private String component;
|
||||
|
||||
@Schema(description = "子节点")
|
||||
|
||||
Reference in New Issue
Block a user