From 1661a71f214e30ad5e41b42316a11861539e06e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=90=E5=AE=B6?= Date: Wed, 5 Jun 2024 14:05:43 +0800 Subject: [PATCH] =?UTF-8?q?feedback=E5=8F=82=E6=95=B0=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/src/dto/feedback.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/src/dto/feedback.rs b/domain/src/dto/feedback.rs index 4f0ce84..c971e20 100644 --- a/domain/src/dto/feedback.rs +++ b/domain/src/dto/feedback.rs @@ -5,6 +5,6 @@ use validator::Validate; pub struct FeedbackAdd { #[validate(required(message = "用户ID不能为空"))] pub user_id: Option, - #[validate(required, length(min = 1, message = "反馈内容不能为空"))] + #[validate(required(message = "反馈内容不能为空"), length(min = 1, message = "反馈内容不能为空"))] pub content: Option } \ No newline at end of file