From bc43681f185af1edf833cf6c94833cb1cdd44a8e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 07 Jul 2022 17:42:18 +0800 Subject: [PATCH] 20220606 --- src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminUpdateWebSetDto.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminUpdateWebSetDto.java b/src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminUpdateWebSetDto.java index 9eb825d..d22e9a0 100644 --- a/src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminUpdateWebSetDto.java +++ b/src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminUpdateWebSetDto.java @@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import javax.validation.constraints.NotBlank; + @Data @ApiModel(value = "AdminUpdateWebSetDto", description = "参数接收类") public class AdminUpdateWebSetDto { @@ -12,9 +14,11 @@ private Long id; @ApiModelProperty(value = "网页标题") + @NotBlank(message = "请输入网页标题") private String webTitle; @ApiModelProperty(value = "网页关键字") + @NotBlank(message = "请输入网页关键字") private String webKeyword; @ApiModelProperty(value = "网页描述") -- Gitblit v1.9.1