From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/ComActEasyPhotoHandleDTO.java | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/ComActEasyPhotoHandleDTO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/ComActEasyPhotoHandleDTO.java index 800f9ba..295c1d4 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/ComActEasyPhotoHandleDTO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/ComActEasyPhotoHandleDTO.java @@ -1,12 +1,14 @@ package com.panzhihua.common.model.dtos.grid; +import java.util.List; + +import javax.validation.constraints.Max; + +import org.hibernate.validator.constraints.Length; + import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import org.hibernate.validator.constraints.Length; - -import javax.validation.constraints.Max; -import java.util.List; /** * 随手拍处理请求参数 @@ -15,7 +17,7 @@ * @version 1.0 * @since 1.0 * @date 2021-05-26 - * */ + */ @Data @ApiModel("随手拍处理请求参数") public class ComActEasyPhotoHandleDTO { @@ -23,16 +25,16 @@ @ApiModelProperty(value = "随手拍id") private Long id; - @Length(max=65535) + @Length(max = 65535) @ApiModelProperty(value = "处理结果", hidden = false, example = "") private String handleResult; - @Length(max=65535) + @Length(max = 65535) @ApiModelProperty(value = "处理结果,图片路径列表,逗号分隔", hidden = false, example = "") private String handlePhotoList; @Max(127) - @ApiModelProperty(value = "是否公示(0.否 1.是)", hidden = false, example = "1") + @ApiModelProperty(value = "是否公示(1.是 2.否)", hidden = false, example = "1") private Integer isPublicity; @ApiModelProperty(value = "(当前操作)用户ID", hidden = true, example = "1") -- Gitblit v1.7.1