mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
资金管理部分增删入参字段长度限制
This commit is contained in:
+3
-2
@@ -35,8 +35,9 @@ public class AdvertisementSaveReqVO {
|
||||
private List<Integer> adPosition;
|
||||
|
||||
|
||||
@Schema(description = "广告图片文件")
|
||||
@NotBlank(message = "广告图片文件不能为空")
|
||||
@Schema(description = "广告图片文件路径")
|
||||
@NotBlank(message = "广告图片文件路径不能为空")
|
||||
@Size(max = 255, message = "广告图片文件路径长度不能超过 255 个字符")
|
||||
private String adImagePath;
|
||||
|
||||
|
||||
|
||||
+2
-4
@@ -2,6 +2,7 @@ package com.cf.imes.module.system.controller.admin.funds.products.vo.product;
|
||||
|
||||
import com.cf.imes.module.system.validation.products.ProductStatus;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.Data;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@@ -15,14 +16,11 @@ public class ProductSaveReqVO {
|
||||
|
||||
@Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||
@NotEmpty(message = "产品名称不能为空")
|
||||
@Size(max = 64, message = "产品名称长度不能超过64")
|
||||
private String productName;
|
||||
|
||||
@Schema(description = "产品状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ProductStatus
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "软件id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Long softwareId;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user