...
|
...
|
@@ -7,6 +7,8 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/logic/comment"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/svc"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/types"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/pkg/contextdata"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/pkg/result"
|
|
|
)
|
|
|
|
|
|
func MiniArticleCommentAtWhoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
...
|
...
|
@@ -18,11 +20,10 @@ func MiniArticleCommentAtWhoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc |
|
|
}
|
|
|
|
|
|
l := comment.NewMiniArticleCommentAtWhoLogic(r.Context(), svcCtx)
|
|
|
token := contextdata.GetUserTokenFromCtx(r.Context())
|
|
|
req.CompanyId = token.CompanyId
|
|
|
req.UserId = token.UserId
|
|
|
resp, err := l.MiniArticleCommentAtWho(&req)
|
|
|
if err != nil {
|
|
|
httpx.ErrorCtx(r.Context(), w, err)
|
|
|
} else {
|
|
|
httpx.OkJsonCtx(r.Context(), w, resp)
|
|
|
}
|
|
|
result.HttpResult(r, w, resp, err)
|
|
|
}
|
|
|
} |
...
|
...
|
|