mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 19:16:24 +00:00
feat: 添加远程地址字段到评论功能,支持记录用户的远程地址
This commit is contained in:
@ -14,6 +14,7 @@ type Comment struct {
|
||||
Content string `gorm:"type:text"` // 评论内容
|
||||
Depth int `gorm:"default:0"` // 评论的层级深度,从0开始计数
|
||||
IsPrivate bool `gorm:"default:false"` // 是否为私密评论,私密评论只有评论者和被评论对象所有者可见
|
||||
RemoteAddr string `gorm:"type:text"` // 远程地址
|
||||
LikeCount uint64
|
||||
CommentCount uint64
|
||||
}
|
||||
|
Reference in New Issue
Block a user