...
|
...
|
@@ -2,11 +2,13 @@ package article |
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/logic/message"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/interanl/pkg/db/transaction"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/interanl/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/interanl/pkg/gateway/authlib"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/pkg/contextdata"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/pkg/xerr"
|
|
|
"time"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/svc"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/types"
|
...
|
...
|
@@ -75,6 +77,13 @@ func (l *SystemDeleteArticleLogic) SystemDeleteArticle(req *types.SystemArticleD |
|
|
if err != nil {
|
|
|
return xerr.NewErrMsgErr("保存文章内容失败", err)
|
|
|
}
|
|
|
//消息通知
|
|
|
messageLogic := message.NewMiniSystemLogic(l.ctx, l.svcCtx)
|
|
|
mTime := time.Unix(article.CreatedAt, 0).Format("2006-01-02 15:04")
|
|
|
err = messageLogic.ArticleDeleted(conn, article.CompanyId, article.AuthorId, mTime)
|
|
|
if err != nil {
|
|
|
return xerr.NewErrMsgErr("删除失败", err)
|
|
|
}
|
|
|
return nil
|
|
|
}, true)
|
|
|
if err != nil {
|
...
|
...
|
|