workMoments

This commit is contained in:
wangchuxiao
2022-04-19 16:28:03 +08:00
parent dfe854a236
commit 3f287eb148
4 changed files with 156 additions and 144 deletions
+2 -1
View File
@@ -376,6 +376,7 @@ func (s *officeServer) CommentOneWorkMoment(_ context.Context, req *pbOffice.Com
}
commentMsg := db.CommentMsg{
Comment: comment,
UserID: workMoment.UserID,
WorkMomentID: workMoment.WorkMomentID,
WorkMomentContent: workMoment.Content,
}
@@ -473,7 +474,7 @@ func (s *officeServer) GetUserWorkMomentsCommentsMsg(_ context.Context, req *pbO
resp.CommentsMsgs = append(resp.CommentsMsgs, &pbOffice.CommentsMsg{
Comment: &comment,
WorkMomentID: commentMsg.WorkMomentID,
Content: commentMsg.Content,
Content: commentMsg.WorkMomentContent,
})
}
resp.Pagination = &pbCommon.ResponsePagination{CurrentPage: req.Pagination.PageNumber, ShowNumber: req.Pagination.ShowNumber}