From 56eded01813a06ea1048b42919af021900e5f813 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 13 Jun 2022 15:58:30 +0800
Subject: [PATCH] 20220606
---
src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminAddArticleDto.java | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminAddArticleDto.java b/src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminAddArticleDto.java
index 3448f79..9f54cd4 100644
--- a/src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminAddArticleDto.java
+++ b/src/main/java/com/xcong/farmer/cms/modules/system/dto/AdminAddArticleDto.java
@@ -4,6 +4,9 @@
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@@ -11,6 +14,7 @@
public class AdminAddArticleDto {
@ApiModelProperty(value = "标题")
+ @NotBlank(message = "请输入文章标题")
private String title;
@ApiModelProperty(value = "标题")
@@ -26,6 +30,7 @@
private String remark;
@ApiModelProperty(value = "所属栏目ID")
+ @NotNull(message = "所属栏目不能为空")
private Long columnId;
@ApiModelProperty(value = "访问量")
--
Gitblit v1.9.1