mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 11:06:23 +00:00
feat: 添加远程地址字段到评论功能,支持记录用户的远程地址
This commit is contained in:
@ -22,6 +22,7 @@ type CreateCommentReq struct {
|
||||
Content string `json:"content" binding:"required"` // 评论内容
|
||||
ReplyID uint `json:"reply_id"` // 回复的评论ID
|
||||
IsPrivate bool `json:"is_private"` // 是否私密评论,默认false
|
||||
RemoteAddr string `json:"remote_addr"` // 远程地址
|
||||
}
|
||||
|
||||
type UpdateCommentReq struct {
|
||||
|
Reference in New Issue
Block a user