feat: 添加用户代理字段到评论功能,支持记录用户的用户代理信息

This commit is contained in:
2025-09-12 15:54:36 +08:00
parent f1a26f5e9c
commit f7b2022f59
4 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,7 @@ func (cs *CommentService) CreateComment(ctx context.Context, req *dto.CreateComm
UserID: currentUser.ID,
IsPrivate: req.IsPrivate,
RemoteAddr: req.RemoteAddr,
UserAgent: req.UserAgent,
}
commentID, err := repo.Comment.CreateComment(comment)