作者 庄敏学

帖子删除类型

... ... @@ -59,7 +59,7 @@ func (l *MiniSystemLogic) ArticleDefined(conn transaction.Conn, companyId, at in
// ArticleDeleted 帖子删除
func (l *MiniSystemLogic) ArticleDeleted(conn transaction.Conn, companyId, at int64, createdTime, title string) (err error) {
return l.createMessage(conn, companyId, at, domain.MsgTypeNormal, "帖子已删除", fmt.Sprintf("你于%v发布的帖子[%v]已被删除,如有疑问,请联系运营管理员了解详情。", createdTime, title))
return l.createMessage(conn, companyId, at, domain.MsgTypeDeleted, "帖子已删除", fmt.Sprintf("你于%v发布的帖子[%v]已被删除,如有疑问,请联系运营管理员了解详情。", createdTime, title))
}
//// ArticleAuth 文章权限变更
... ...
... ... @@ -21,8 +21,9 @@ type MessageSystem struct {
type MsgSystemType int
const (
MsgTypeNormal MsgSystemType = 1
MsgTypeAbnormal MsgSystemType = 2
MsgTypeNormal MsgSystemType = 1 //1业务正常通知
MsgTypeAbnormal MsgSystemType = 2 //2业务异常通知
MsgTypeDeleted MsgSystemType = 3 //3帖子删除通知
)
type MessageSystemRepository interface {
... ...