2021-08-12 08:44:06 +00:00
|
|
|
from rest_framework.request import Request
|
|
|
|
from rest_framework.response import Response
|
2023-09-13 09:05:01 +00:00
|
|
|
from rest_framework.views import APIView
|
2021-08-12 08:44:06 +00:00
|
|
|
|
2023-10-12 08:17:32 +00:00
|
|
|
from common.permissions import IsValidUser
|
2023-09-13 09:05:01 +00:00
|
|
|
from common.utils import get_logger
|
2021-08-12 08:44:06 +00:00
|
|
|
|
|
|
|
|
2023-12-08 07:11:49 +00:00
|
|
|
logger = get_logger(__name__)
|
2021-08-12 08:44:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
class FeiShuEventSubscriptionCallback(APIView):
|
|
|
|
"""
|
|
|
|
# https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM
|
|
|
|
"""
|
2023-09-13 09:05:01 +00:00
|
|
|
permission_classes = (IsValidUser,)
|
2021-08-12 08:44:06 +00:00
|
|
|
|
|
|
|
def post(self, request: Request, *args, **kwargs):
|
|
|
|
return Response(data=request.data)
|