fix(system/file): 补充文件管理校验注解

This commit is contained in:
2025-05-18 15:32:53 +08:00
parent 0331d4b03b
commit e099b5e5aa
2 changed files with 5 additions and 3 deletions

View File

@@ -41,8 +41,8 @@ public class FileReq implements Serializable {
* 名称
*/
@Schema(description = "名称", example = "example")
@NotBlank(message = "文件名称不能为空")
@Length(max = 255, message = "文件名称长度不能超过 {max} 个字符")
@NotBlank(message = "名称不能为空")
@Length(max = 255, message = "名称长度不能超过 {max} 个字符")
private String originalName;
/**