作者 庄敏学

合并分支 'dev' 到 'test'

帖子删除类型



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