feat: 添加短信服务和用户消息通知

This commit is contained in:
xinwen
2021-08-24 14:20:54 +08:00
parent d49d1e1414
commit b1fceca8a6
57 changed files with 1442 additions and 296 deletions

View File

@@ -18,7 +18,10 @@ class ServerPerformanceMessage(SystemMessage):
self._msg = msg
def get_common_msg(self):
return self._msg
return {
'subject': self._msg[:80],
'message': self._msg
}
@classmethod
def post_insert_to_db(cls, subscription: SystemMsgSubscription):