This commit is contained in:
wangchuxiao 2022-04-15 17:45:33 +08:00
parent dbc5bd96f3
commit 9976b8132f
2 changed files with 6 additions and 6 deletions

View File

@ -290,8 +290,8 @@ func GetUserWorkMomentsCommentsMsg(c *gin.Context) {
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "CopyStructFields failed", err.Error()) log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "CopyStructFields failed", err.Error())
} }
resp.Data.CurrentPage = respPb.Pagination.CurrentPage resp.Data.CurrentPage = respPb.Pagination.CurrentPage
resp.Data.ShowNumber = respPb.Pagination.ShowNumber resp.Data.ShowNumber = respPb.Pagination.ShowNumber
resp.Data.CommentsMsg = respPb.CommentsMsg resp.Data.CommentMsgs = respPb.CommentsMsgs
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp) log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp)
c.JSON(http.StatusOK, resp) c.JSON(http.StatusOK, resp)
} }

View File

@ -74,9 +74,9 @@ type GetUserWorkMomentsCommentsMsgReq struct {
type GetUserWorkMomentsCommentsMsgResp struct { type GetUserWorkMomentsCommentsMsgResp struct {
CommResp CommResp
Data struct { Data struct {
CommentsMsg []*office.CommentsMsg `json:"comments"` CommentMsgs []*office.CommentsMsg `json:"comments"`
CurrentPage int32 `json:"currentPage"` CurrentPage int32 `json:"currentPage"`
ShowNumber int32 `json:"showNumber"` ShowNumber int32 `json:"showNumber"`
} `json:"data"` } `json:"data"`
} }