feat: notice_config access messenger (#190)

This commit is contained in:
simontigers
2023-10-09 17:32:20 +08:00
committed by GitHub
parent 63ed73fa14
commit 8c6389b4f8
8 changed files with 220 additions and 42 deletions

View File

@@ -69,3 +69,11 @@ class NoticeConfigGetView(APIView):
def get(self):
res = NoticeConfigCRUD.get_all()
return self.jsonify(res)
class NoticeAppBotView(APIView):
url_prefix = (f'{prefix}/app_bot',)
def get(self):
res = NoticeConfigCRUD.get_app_bot()
return self.jsonify(res)