feedback参数修改校验
This commit is contained in:
parent
789c801fa3
commit
1661a71f21
@ -5,6 +5,6 @@ use validator::Validate;
|
|||||||
pub struct FeedbackAdd {
|
pub struct FeedbackAdd {
|
||||||
#[validate(required(message = "用户ID不能为空"))]
|
#[validate(required(message = "用户ID不能为空"))]
|
||||||
pub user_id: Option<i64>,
|
pub user_id: Option<i64>,
|
||||||
#[validate(required, length(min = 1, message = "反馈内容不能为空"))]
|
#[validate(required(message = "反馈内容不能为空"), length(min = 1, message = "反馈内容不能为空"))]
|
||||||
pub content: Option<String>
|
pub content: Option<String>
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user