UnisKB/apps/system_manage/views/system_config.py

22 lines
560 B
Python
Raw 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: 系统配置视图
"""
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import AllowAny
from common.result import result
from system_manage.serializers.system import SystemConfigSerializer
@api_view(['GET'])
@permission_classes([AllowAny])
def get_system_config(request):
"""
获取系统配置信息
"""
return result.success(SystemConfigSerializer.get_config())