MaxKB/apps/system_manage/api/email_setting.py
2025-05-07 18:09:45 +08:00

32 lines
860 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding=utf-8
"""
@project: MaxKB
@Author虎虎
@file workspace_user_resource_permission.py
@date2025/4/28 18:13
@desc:
"""
from drf_spectacular.types import OpenApiTypes
from drf_spectacular.utils import OpenApiParameter
from common.mixins.api_mixin import APIMixin
from common.result import ResultSerializer
from system_manage.serializers.email_setting import EmailSettingSerializer
from system_manage.serializers.user_resource_permission import UserResourcePermissionResponse, \
UpdateUserResourcePermissionRequest
class EmailResponse(ResultSerializer):
def get_data(self):
return EmailSettingSerializer.Create()
class EmailSettingAPI(APIMixin):
@staticmethod
def get_request():
return EmailSettingSerializer.Create()
@staticmethod
def get_response():
return EmailResponse