{
  "tags": [
    "公共接口"
  ],
  "description": "读取系统展示配置并返回控制台标题、页脚版权、页脚链接和系统名称。该公共接口不要求登录，配置内容由管理员在系统设置中维护。",
  "operationId": "public_get_v1_common_sysinfo",
  "security": [],
  "responses": {
    "200": {
      "description": "配置读取成功时返回系统展示信息；数据库配置读取异常不会转换为业务错误响应。",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "code",
              "msg",
              "data"
            ],
            "properties": {
              "code": {
                "type": "integer",
                "enum": [
                  0
                ],
                "description": "成功状态码，系统信息读取成功时固定为 0。"
              },
              "msg": {
                "type": "string",
                "enum": [
                  ""
                ],
                "description": "系统信息读取成功时固定为空字符串。"
              },
              "data": {
                "type": "object",
                "required": [
                  "footer_copyright",
                  "footer_link",
                  "user_console_title",
                  "admin_console_title",
                  "sys_name"
                ],
                "properties": {
                  "footer_copyright": {
                    "type": "string",
                    "description": "前端页脚显示的版权文本。"
                  },
                  "footer_link": {
                    "type": "string",
                    "description": "前端页脚链接配置：每行一个链接，行内以“显示名|URL”分隔。"
                  },
                  "user_console_title": {
                    "type": "string",
                    "description": "用户控制台标题。"
                  },
                  "admin_console_title": {
                    "type": "string",
                    "description": "管理员控制台标题。"
                  },
                  "sys_name": {
                    "type": "string",
                    "description": "系统名称，供登录、注册等公开页面展示。"
                  },
                  "js_code": {
                    "type": "string",
                    "description": "可选的前端注入 JavaScript 配置，例如统计或客服脚本。"
                  },
                  "sub_title": {
                    "type": "string",
                    "description": "可选的公开页面副标题。"
                  }
                },
                "additionalProperties": true,
                "description": "系统前端展示信息对象。服务端直接透传 system_info 配置；除已列字段外，管理员保存的其他展示配置也可能出现。"
              }
            },
            "additionalProperties": false
          },
          "example": {
            "code": 0,
            "msg": "",
            "data": {
              "footer_copyright": "Copyright © 2025 Example",
              "footer_link": "官网|https://example.invalid",
              "user_console_title": "用户控制台",
              "admin_console_title": "管理员控制台",
              "sys_name": "itecdn"
            }
          }
        }
      }
    }
  },
  "x-python-handler": "common.SysInfoAPI",
  "x-python-route-line": 1086,
  "x-audience": "user",
  "x-auth": "public",
  "x-reviewed": true,
  "parameters": [],
  "x-itecdn-source-reviewed": true,
  "extensions": [
    {
      "key": "x-python-handler",
      "value": "common.SysInfoAPI"
    },
    {
      "key": "x-python-route-line",
      "value": 1086
    },
    {
      "key": "x-audience",
      "value": "user"
    },
    {
      "key": "x-auth",
      "value": "public"
    },
    {
      "key": "x-reviewed",
      "value": true
    },
    {
      "key": "x-itecdn-source-reviewed",
      "value": true
    }
  ],
  "method": "get",
  "path": "/v1/common/sysinfo",
  "servers": [
    {
      "url": "https://master.example.invalid",
      "description": "不可调用的示例地址；复制示例后替换为自己的主控域名。"
    }
  ],
  "securitySchemes": {
    "AccessToken": {
      "type": "apiKey",
      "in": "header",
      "name": "access-token",
      "description": "通过登录接口获得的短期访问令牌。"
    },
    "ApiKey": {
      "type": "apiKey",
      "in": "header",
      "name": "api-key",
      "description": "API Key；必须和 api-secret 同时发送。"
    },
    "ApiSecret": {
      "type": "apiKey",
      "in": "header",
      "name": "api-secret",
      "description": "API Secret；必须和 api-key 同时发送。"
    }
  },
  "info": {
    "title": "itecdn v5 用户 API",
    "version": "5.x",
    "description": "itecdn v5.x Python 主控用户 API。本文档不适用于 v6 或其它实现。"
  },
  "postman": {
    "name": "获取系统展示信息",
    "description": {
      "content": "读取系统展示配置并返回控制台标题、页脚版权、页脚链接和系统名称。该公共接口不要求登录，配置内容由管理员在系统设置中维护。",
      "type": "text/plain"
    },
    "url": {
      "path": [
        "v1",
        "common",
        "sysinfo"
      ],
      "host": [
        "{{baseUrl}}"
      ],
      "query": [],
      "variable": []
    },
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "method": "GET"
  }
}