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

@@ -156,3 +156,15 @@ class GetEmployeeNoticeByIds(APIView):
else:
result = EmployeeCRUD.get_employee_notice_by_ids(employee_ids)
return self.jsonify(result)
class EmployeeBindNoticeWithACLID(APIView):
url_prefix = (f'{prefix}/by_uid/bind_notice/<string:platform>/<int:_uid>',)
def put(self, platform, _uid):
data = EmployeeCRUD.bind_notice_by_uid(platform, _uid)
return self.jsonify(info=data)
def delete(self, platform, _uid):
data = EmployeeCRUD.remove_bind_notice_by_uid(platform, _uid)
return self.jsonify(info=data)