UnisKB/apps/system_manage/api/system_config.py

23 lines
537 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# coding=utf-8
"""
@project: MaxKB
@Author系统配置
@file system_config.py
@date2025/3/9
@desc: 系统配置 API
"""
from common.mixins.api_mixin import APIMixin
from common.result import ResultSerializer
from system_manage.serializers.system import SystemConfigSerializer
class SystemConfigResult(ResultSerializer):
def get_data(self):
return SystemConfigSerializer.get_config()
class SystemConfigAPI(APIMixin):
@staticmethod
def get_response():
return SystemConfigResult