add comment ent code

This commit is contained in:
landaiqing
2024-11-19 23:46:13 +08:00
parent df32353c0f
commit 3328647b37
62 changed files with 19401 additions and 104 deletions

View File

@@ -21,7 +21,7 @@ func SubmitCommentHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
l := comment.NewSubmitCommentLogic(r.Context(), svcCtx)
resp, err := l.SubmitComment(&req)
resp, err := l.SubmitComment(r, &req)
if err != nil {
logx.Error(err)
httpx.WriteJsonCtx(

View File

@@ -21,7 +21,7 @@ func SubmitReplyCommentHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
l := comment.NewSubmitReplyCommentLogic(r.Context(), svcCtx)
resp, err := l.SubmitReplyComment(&req)
resp, err := l.SubmitReplyComment(r, &req)
if err != nil {
logx.Error(err)
httpx.WriteJsonCtx(