feat(notify): filter notification by topic_type

之前的模型,消息和Event是一一对应的,一个Event可以和多个Topic对应,
为了支持通过Topic Type过滤消息,现在Event和Topic是一一对应的。
This commit is contained in:
rainzm
2022-04-12 13:52:55 +08:00
parent ef2b3cd7fc
commit 68bb344201
5 changed files with 38 additions and 20 deletions
+1
View File
@@ -89,6 +89,7 @@ func init() {
ContactType string `help:"contact_type"`
ReceiverId string `help:"receiver_id"`
TopicType string `help:"topic type"`
}
R(&NotificationListInput{}, "notify-list", "List notify message", func(s *mcclient.ClientSession, args *NotificationListInput) error {
params, err := options.ListStructToParams(args)