Merge branch 'feat/1.0.4/comment' into test

This commit is contained in:
LinkinStar 2023-02-02 16:31:16 +08:00
commit 70da7357c3
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ type AddCommentReq struct {
// reply comment id
ReplyCommentID string `validate:"omitempty" json:"reply_comment_id"`
// original comment content
OriginalText string `validate:"required" json:"original_text"`
OriginalText string `validate:"required,gte=2,lte=600" json:"original_text"`
// parsed comment content
ParsedText string `json:"-"`
// @ user id list
@ -47,7 +47,7 @@ type UpdateCommentReq struct {
// comment id
CommentID string `validate:"required" json:"comment_id"`
// original comment content
OriginalText string `validate:"omitempty" json:"original_text"`
OriginalText string `validate:"required,gte=2,lte=600" json:"original_text"`
// parsed comment content
ParsedText string `json:"-"`
// user id