{
  "openapi": "3.0.3",
  "info": {
    "title": "剧海湾 · 课程影片服务",
    "version": "2.0.0",
    "description": "学员影片站与运营管理台共用此契约。访问地址以当前学员站的 /api 为前缀。公开目录供 WEB 取片，运营接口按操作要求校验本站会话或个人令牌。"
  },
  "servers": [
    {
      "url": "/api"
    }
  ],
  "paths": {
    "/film/catalog": {
      "post": {
        "summary": "读取影片、题材、楼层和首页主推",
        "responses": {
          "200": {
            "description": "网络上传输 text/plain 信封。application/json 条目供 swift-web 生成客户端时读取解包后的业务模型。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilmCatalog"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "实际 HTTP 响应。Base64 信封由 swift-web 自动解包，业务数据结构见 FilmCatalog。"
                }
              }
            }
          },
          "400": {
            "description": "requestId 缺少或 UUID 格式无效。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-sw-protocol": "encrypted",
        "x-sw-visibility": "public",
        "description": "匿名 WEB 通过 swift-web 客户端读取片库。客户端发送 UUID 格式的 requestId 请求头，网络响应是 text/plain 信封，由客户端解包为 FilmCatalog。",
        "parameters": [
          {
            "name": "requestId",
            "in": "header",
            "required": true,
            "description": "本次请求的 UUID，由 swift-web 客户端生成，用于解包响应信封。",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/catalog": {
      "get": {
        "summary": "用明文 JSON 核对公开片库",
        "responses": {
          "200": {
            "description": "含已上架影片、题材、可见板块及当前热播顺序。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilmCatalog"
                }
              }
            }
          }
        },
        "x-sw-protocol": "plain-json",
        "description": "供匿名访客、浏览器和联调脚本读取公开片库。与 WEB 信封接口共用同一投影，响应直接返回 JSON。"
      }
    },
    "/admin/films/{id}": {
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "影片的稳定标识，用于详情地址、运营接口及片库关联。"
        }
      ],
      "patch": {
        "summary": "编辑影片资料",
        "responses": {
          "200": {
            "description": "保存后的完整运营影片资料。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedFilm"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FilmPatch"
              }
            }
          }
        },
        "x-sw-protocol": "plain-json",
        "description": "运营或超管会话、读写 PAT 可局部修改影片。省略的字段保留原值。公开片库在下次读取时反映已上架影片的更改。"
      },
      "get": {
        "summary": "运营读取影片详情",
        "x-sw-protocol": "plain-json",
        "responses": {
          "200": {
            "description": "指定影片的资料与上架状态。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedFilm"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "description": "运营或超管会话、只读或读写 PAT 均可按稳定 ID 查看影片，包括尚未上架的草稿。"
      }
    },
    "/admin/login": {
      "post": {
        "summary": "工号与密码登录运营台，会话有效 8 小时",
        "x-sw-protocol": "plain-json",
        "responses": {
          "200": {
            "description": "当前身份以及新签发的会话凭证。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Login"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "401": {
            "description": "账号、密码或账号状态无效。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "多次登录失败，账号暂时锁定。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string",
                    "description": "本站运营账号的登录名，按大写保存；学员超管默认使用课程工号。"
                  },
                  "password": {
                    "type": "string",
                    "description": "该运营账号的登录密码，长度为 8 至 128 个字符。"
                  }
                },
                "required": [
                  "username",
                  "password"
                ]
              }
            }
          }
        },
        "description": "使用本站账号密码建立管理台会话。登录成功后用 token 发起 Bearer 请求；连续输错密码会触发临时限流。"
      }
    },
    "/admin/logout": {
      "post": {
        "summary": "注销当前会话",
        "x-sw-protocol": "plain-json",
        "responses": {
          "200": {
            "description": "本次网页登录会话已撤销。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "loggedOut": {
                      "type": "boolean",
                      "description": "true 表示已注销本次会话。"
                    }
                  },
                  "required": [
                    "loggedOut"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "description": "读写 PAT 无法访问这个网页登录会话入口。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "description": "持当前网页登录会话注销；其余会话和本人 PAT 继续按原有效期使用。"
      }
    },
    "/admin/accounts": {
      "get": {
        "summary": "超管查看账号",
        "x-sw-protocol": "plain-json",
        "responses": {
          "200": {
            "description": "按内部 ID 排列的账号清单。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Account"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "description": "仅超管网页登录会话可读取本站所有运营账号，供账号管理页面核对角色及启停状态。"
      },
      "post": {
        "summary": "超管创建账号",
        "x-sw-protocol": "plain-json",
        "responses": {
          "201": {
            "description": "新建账号的身份、角色与状态。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "409": {
            "description": "登录名已被使用。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string",
                    "description": "本站运营账号的登录名，按大写保存；学员超管默认使用课程工号。"
                  },
                  "password": {
                    "type": "string",
                    "description": "该运营账号的登录密码，长度为 8 至 128 个字符。"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "super",
                      "operator"
                    ],
                    "description": "本站权限角色，super 为超管，operator 为运营。"
                  }
                },
                "required": [
                  "username",
                  "password",
                  "role"
                ]
              }
            }
          }
        },
        "description": "仅超管网页登录会话可新建本站账号，指定其初始密码和角色。登录名须唯一。"
      }
    },
    "/admin/accounts/{id}": {
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "type": "integer"
          },
          "description": "运营账号的内部数字 ID，用于定位要维护的账号。"
        }
      ],
      "patch": {
        "summary": "超管改角色、启停或重置密码，撤销该账号的凭证",
        "x-sw-protocol": "plain-json",
        "responses": {
          "200": {
            "description": "目标账号保存后的登录名、角色和状态。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "description": "本站运营账号的登录名，按大写保存；学员超管默认使用课程工号。"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "super",
                        "operator"
                      ],
                      "description": "本站权限角色，super 为超管，operator 为运营。"
                    },
                    "enabled": {
                      "type": "integer",
                      "description": "账号状态，1 表示启用，0 表示停用。"
                    }
                  },
                  "required": [
                    "username",
                    "role",
                    "enabled"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          },
          "409": {
            "description": "操作将移除最后一个启用的超管。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "description": "该运营账号的登录密码，长度为 8 至 128 个字符。",
                    "minLength": 8,
                    "maxLength": 128,
                    "format": "password"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "super",
                      "operator"
                    ],
                    "description": "本站权限角色，super 为超管，operator 为运营。"
                  },
                  "enabled": {
                    "type": "boolean",
                    "description": "设为 true 启用账号，false 停用账号。"
                  }
                },
                "minProperties": 1,
                "additionalProperties": false
              }
            }
          }
        },
        "description": "仅超管网页登录会话可修改指定账号。保存后撤销目标账号的会话与 PAT，至少保留一个已启用的超管。 请求至少包含一个待修改字段。"
      }
    },
    "/admin/tokens": {
      "get": {
        "summary": "本人令牌列表（仅会话）",
        "x-sw-protocol": "plain-json",
        "responses": {
          "200": {
            "description": "当前账号的令牌记录及有效期。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AccessToken"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "description": "持网页登录会话读取本人 PAT 的元数据，按 ID 倒序返回。已签发的令牌明文不能从列表取回。"
      },
      "post": {
        "summary": "签发本人运营令牌，明文仅返回一次",
        "x-sw-protocol": "plain-json",
        "responses": {
          "201": {
            "description": "新令牌记录 ID 与一次性交付的明文。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "description": "本人令牌记录的数字 ID，用于撤销指定令牌。"
                    },
                    "token": {
                      "type": "string",
                      "description": "刚签发的 PAT 明文，仅在本次响应返回，请存入本机私密配置。"
                    }
                  },
                  "required": [
                    "id",
                    "token"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "由签发者填写的用途名称，便于识别和撤销。"
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "read",
                      "write"
                    ],
                    "description": "read 可查询影片，write 可查询和维护影片。账号与令牌管理需要网页登录会话。"
                  },
                  "days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 90,
                    "description": "令牌有效期，以签发时刻起算，单位为天，允许 1 至 90。"
                  }
                },
                "required": [
                  "name",
                  "scope",
                  "days"
                ]
              }
            }
          }
        },
        "description": "持网页登录会话为本人签发影片运营 PAT，按用途选择读取或读写权限。明文只在签发时返回一次。"
      }
    },
    "/admin/tokens/{id}": {
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "type": "integer"
          },
          "description": "本人令牌记录的数字 ID，用于撤销指定令牌。"
        }
      ],
      "delete": {
        "summary": "撤销本人令牌",
        "x-sw-protocol": "plain-json",
        "responses": {
          "200": {
            "description": "已执行撤销操作。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "type": "boolean",
                      "description": "true 表示指定令牌已撤销。"
                    }
                  },
                  "required": [
                    "revoked"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "description": "持网页登录会话撤销本人指定令牌。使用该令牌的 MCP 从下一次请求起需要重新认证。"
      }
    },
    "/admin/films": {
      "get": {
        "summary": "分页查找影片，可按片名、演员、ID、题材和发布状态筛选",
        "x-sw-protocol": "plain-json",
        "responses": {
          "200": {
            "description": "当前页影片、匹配总数及本站热播榜首。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "featuredId": {
                      "type": "string",
                      "nullable": true,
                      "description": "全站热播榜首的影片 ID，空榜为 null。它独立于本次筛选和分页，即使本页 films 为空也可能有值。可用此 ID 单独读取运营影片详情。"
                    },
                    "total": {
                      "type": "integer",
                      "description": "符合本次筛选的记录总数，含其他页。"
                    },
                    "films": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "影片的稳定标识，用于详情地址、运营接口及片库关联。"
                          },
                          "title": {
                            "type": "string",
                            "description": "影片在本站展示的片名，用于卡片、详情和检索。"
                          },
                          "original": {
                            "type": "string",
                            "description": "原片名，可用于检索，也可与展示片名相同。"
                          },
                          "year": {
                            "type": "integer",
                            "description": "影片上映年份，整数，允许 1880 至 2100。"
                          },
                          "categoryId": {
                            "type": "string",
                            "description": "所属题材的稳定 ID，对应 categories[].id。改名后关联仍有效。"
                          },
                          "published": {
                            "type": "boolean",
                            "description": "是否已上架。true 时影片可进入公开片库，false 时仅能在运营侧查看。"
                          },
                          "poster": {
                            "type": "string",
                            "description": "影片竖版封面的完整 HTTP 或 HTTPS 图片地址。"
                          },
                          "recommendedAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "本片最近一次被运营推荐到题材板块的时间，采用 ISO 8601。取消推荐后省略。"
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "original",
                          "year",
                          "categoryId",
                          "published",
                          "poster"
                        ]
                      },
                      "description": "当前页的影片摘要列表。"
                    },
                    "page": {
                      "type": "integer",
                      "description": "当前页号，从 1 开始。"
                    },
                    "pageSize": {
                      "type": "integer",
                      "description": "每页最多返回 20 条记录。"
                    }
                  },
                  "required": [
                    "featuredId",
                    "total",
                    "films",
                    "page",
                    "pageSize"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidQuery"
          }
        },
        "security": [
          {
            "editor": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string"
            },
            "description": "匹配影片 ID、展示片名、原片名或主演的关键字。"
          },
          {
            "in": "query",
            "name": "category",
            "schema": {
              "type": "string"
            },
            "description": "所属题材的稳定 ID，对应 categories[].id。改名后关联仍有效。"
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string",
              "enum": [
                "draft",
                "published"
              ]
            },
            "description": "published 只查已上架，draft 只查草稿，省略时两者都查。"
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000,
              "default": 1
            },
            "description": "从 1 开始的页码，省略时取第一页。"
          }
        ],
        "description": "运营或超管会话、只读或读写 PAT 可检索草稿和已上架影片。先取各条件的交集，再按片库顺序分页，每页 20 部。"
      },
      "post": {
        "summary": "新建影片，初始状态为草稿",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "201": {
            "description": "刚创建的草稿及服务端分配的 ID。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedFilm"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FilmCreate"
              }
            }
          }
        },
        "description": "运营或超管会话、读写 PAT 可建立草稿。服务端分配影片 ID 和收录日期；上架后进入公开片库。"
      }
    },
    "/admin/films/{id}/publication": {
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "影片的稳定标识，用于详情地址、运营接口及片库关联。"
        }
      ],
      "put": {
        "summary": "上架或下架影片，下架时同时撤下主推",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "影片 ID 及当前上架状态。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "影片的稳定标识，用于详情地址、运营接口及片库关联。"
                    },
                    "published": {
                      "type": "boolean",
                      "description": "本次操作完成后的上架状态，true 表示可在公开片库中读取。"
                    }
                  },
                  "required": [
                    "id",
                    "published"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "published": {
                    "type": "boolean",
                    "description": "是否已上架。true 时影片可进入公开片库，false 时仅能在运营侧查看。"
                  }
                },
                "required": [
                  "published"
                ]
              }
            }
          }
        },
        "description": "运营或超管会话、读写 PAT 可切换上架状态。下架时同时清除分类推荐，影片从公开目录和热播榜移出。"
      }
    },
    "/admin/me": {
      "get": {
        "summary": "读取当前网页登录账号",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "当前登录账号的工号或用户名以及角色。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "description": "本站运营账号的登录名，按大写保存；学员超管默认使用课程工号。"
                    },
                    "role": {
                      "type": "string",
                      "description": "本站权限角色，super 为超管，operator 为运营。"
                    }
                  },
                  "required": [
                    "username",
                    "role"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "404": {
            "description": "需要网页登录会话。此凭证无法访问该会话入口。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "持当前网页登录会话读取本人身份和角色，用于管理台恢复登录状态。"
      }
    },
    "/admin/overview": {
      "get": {
        "summary": "读取本站运营工作台（登录会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "本站片库汇总数字和当前榜首详情。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "description": "本站影片总数，含上架与草稿。"
                    },
                    "published": {
                      "type": "integer",
                      "description": "当前已上架的影片数。"
                    },
                    "drafts": {
                      "type": "integer",
                      "description": "当前草稿数。"
                    },
                    "featured": {
                      "description": "当前热播榜首的运营影片详情，空榜时为 null。",
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/ManagedFilm"
                        },
                        {
                          "type": "object",
                          "nullable": true,
                          "enum": [
                            null
                          ],
                          "description": "热播榜还没有上榜影片。"
                        }
                      ]
                    },
                    "categories": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/Genre"
                          },
                          {
                            "type": "object",
                            "required": [
                              "count"
                            ],
                            "properties": {
                              "count": {
                                "type": "integer",
                                "description": "此分类下的影片数，含草稿。"
                              }
                            }
                          }
                        ]
                      },
                      "description": "按导航顺序列出的题材及各自影片数。"
                    }
                  },
                  "required": [
                    "total",
                    "published",
                    "drafts",
                    "featured",
                    "categories"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "404": {
            "description": "需要网页登录会话。此凭证无法访问该会话入口。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "运营或超管网页登录后查看本站片库规模、各题材数量和热播榜首。"
      }
    },
    "/admin/audit": {
      "get": {
        "summary": "超管查看操作日志（登录会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "本页操作记录、页码及匹配总数。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "page": {
                      "type": "integer",
                      "description": "当前页号，从 1 开始。"
                    },
                    "pageSize": {
                      "type": "integer",
                      "description": "每页最多返回 20 条记录。"
                    },
                    "total": {
                      "type": "integer",
                      "description": "符合本次筛选的记录总数，含其他页。"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "操作日志记录的内部 ID。"
                          },
                          "actor": {
                            "type": "string",
                            "description": "执行操作的账号登录名。"
                          },
                          "source": {
                            "type": "string",
                            "description": "凭证来源，session 为管理台会话，pat 为个人令牌。"
                          },
                          "action": {
                            "type": "string",
                            "description": "业务动作标识，例如 film.update。"
                          },
                          "target": {
                            "type": "string",
                            "description": "操作对象标识，无可定位对象时为空字符串。"
                          },
                          "created": {
                            "type": "integer",
                            "description": "操作发生时间，Unix 毫秒时间戳。"
                          }
                        },
                        "required": [
                          "id",
                          "actor",
                          "source",
                          "action",
                          "target",
                          "created"
                        ]
                      },
                      "description": "本页操作日志，按记录 ID 从新到旧排列。"
                    }
                  },
                  "required": [
                    "page",
                    "pageSize",
                    "total",
                    "items"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "400": {
            "$ref": "#/components/responses/InvalidQuery"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000,
              "default": 1
            },
            "description": "从 1 开始的页码，省略时取第一页。"
          },
          {
            "in": "query",
            "name": "source",
            "schema": {
              "type": "string",
              "enum": [
                "session",
                "pat"
              ]
            },
            "description": "凭证来源，session 为管理台会话，pat 为个人令牌。"
          }
        ],
        "description": "仅超管网页登录会话可查运营写入记录。支持按会话或 PAT 筛选，再按记录 ID 倒序分页。"
      }
    },
    "/admin/me/password": {
      "post": {
        "summary": "网页登录后修改本人密码，注销本人的全部会话与令牌",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "currentPassword",
                  "newPassword"
                ],
                "properties": {
                  "currentPassword": {
                    "type": "string",
                    "format": "password",
                    "description": "本人当前密码，用于确认改密操作。"
                  },
                  "newPassword": {
                    "type": "string",
                    "format": "password",
                    "minLength": 8,
                    "maxLength": 128,
                    "description": "本人新密码，8 至 128 个字符。"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "密码已更新，返回账号的当前身份和状态。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "description": "本站运营账号的登录名，按大写保存；学员超管默认使用课程工号。"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "super",
                        "operator"
                      ],
                      "description": "本站权限角色，super 为超管，operator 为运营。"
                    },
                    "enabled": {
                      "type": "integer",
                      "description": "账号状态，1 表示启用，0 表示停用。"
                    }
                  },
                  "required": [
                    "username",
                    "role",
                    "enabled"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          }
        },
        "description": "持网页登录会话验证本人当前密码，再设置新密码。保存后本人的全部会话和 PAT 失效，需用新密码登录。"
      }
    },
    "/traffic/views": {
      "post": {
        "summary": "按日独立记录页面访问与正片起播",
        "x-sw-protocol": "plain-json",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "events"
                ],
                "properties": {
                  "events": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "event": {
                              "type": "string",
                              "enum": [
                                "appPageView"
                              ],
                              "description": "事件种类：appPageView 为页面访问，filmPlaying 为正片起播。"
                            },
                            "payload": {
                              "type": "object",
                              "properties": {
                                "path": {
                                  "type": "string",
                                  "description": "实际访问的本站页面路径，例如 /movies。"
                                }
                              },
                              "required": [
                                "path"
                              ],
                              "description": "该次事件的业务数据，由 event 选择字段。"
                            }
                          },
                          "required": [
                            "event",
                            "payload"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "event": {
                              "type": "string",
                              "enum": [
                                "filmPlaying"
                              ],
                              "description": "事件种类：appPageView 为页面访问，filmPlaying 为正片起播。"
                            },
                            "payload": {
                              "type": "object",
                              "properties": {
                                "filmId": {
                                  "type": "string",
                                  "description": "实际开始播放的已上架影片 ID。"
                                }
                              },
                              "required": [
                                "filmId"
                              ],
                              "description": "该次事件的业务数据，由 event 选择字段。"
                            }
                          },
                          "required": [
                            "event",
                            "payload"
                          ]
                        }
                      ]
                    },
                    "maxItems": 40,
                    "description": "本批上报的事件，最多 40 条。"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "批次已接收，具体计数以有效事件为准。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "received"
                  ],
                  "properties": {
                    "received": {
                      "type": "boolean",
                      "description": "true 表示服务已接收并处理本批上报。"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          }
        },
        "description": "前台可匿名批量上报访问或正片起播，每批最多 40 条。按 UTC+8 自然日聚合。未识别的页面或未上架影片的起播不会计入统计。"
      }
    },
    "/admin/traffic": {
      "get": {
        "summary": "读取按 UTC+8 自然日汇总的流量（运营或超管会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "enum": [
                7,
                30
              ],
              "default": 7
            },
            "description": "含今天在内的 UTC+8 自然日数，省略时取 7。"
          }
        ],
        "responses": {
          "200": {
            "description": "窗口内的总浏览量、每日统计与热门页面。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "total",
                    "trend",
                    "top"
                  ],
                  "properties": {
                    "total": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "所选窗口内页面访问次数之和。"
                    },
                    "trend": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "day",
                          "views"
                        ],
                        "properties": {
                          "day": {
                            "type": "string",
                            "format": "date",
                            "description": "UTC+8 自然日，格式为 YYYY-MM-DD。"
                          },
                          "views": {
                            "type": "integer",
                            "minimum": 0,
                            "description": "该日期或该页面在选定窗口内的浏览次数。"
                          }
                        }
                      },
                      "description": "按 UTC+8 自然日顺序排列，未发生访问的日期也返回。"
                    },
                    "top": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "path",
                          "title",
                          "views"
                        ],
                        "properties": {
                          "path": {
                            "type": "string",
                            "description": "被访问页面的站内路径。"
                          },
                          "title": {
                            "type": "string",
                            "description": "用于流量报表展示的页面名称。"
                          },
                          "views": {
                            "type": "integer",
                            "minimum": 0,
                            "description": "该日期或该页面在选定窗口内的浏览次数。"
                          }
                        }
                      },
                      "description": "窗口内按访问次数降序排列的前 10 个页面。"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "400": {
            "$ref": "#/components/responses/InvalidQuery"
          }
        },
        "description": "运营或超管网页登录后读取近 7 或 30 天的页面访问量、逐日趋势及热门页面。正片播放次数另计。"
      }
    },
    "/admin/categories": {
      "post": {
        "summary": "新增影片分类（运营或超管会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "201": {
            "description": "新题材的稳定标识。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
                      "maxLength": 48,
                      "description": "题材稳定标识，用于分类网址以及 Film.categoryId 的关联。"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "分类名称或标识已存在。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
                    "maxLength": 48,
                    "description": "题材稳定标识，用于分类网址以及 Film.categoryId 的关联。"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "description": "导航、筛选标签和分类页显示的题材名称。"
                  },
                  "intro": {
                    "type": "string",
                    "maxLength": 240,
                    "description": "分类页标题下的题材简介，可为空字符串。"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "intro"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "description": "运营或超管网页登录后新建题材，题材标识用于分类网址。名称与标识均须唯一。"
      }
    },
    "/admin/categories/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
            "maxLength": 48
          },
          "description": "题材稳定标识，用于分类网址以及 Film.categoryId 的关联。"
        }
      ],
      "patch": {
        "summary": "修改名称与简介，或上移下移（运营或超管会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "本次更新的题材标识。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
                      "maxLength": 48,
                      "description": "题材稳定标识，用于分类网址以及 Film.categoryId 的关联。"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "分类名称已存在或已到排序边界。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40,
                        "description": "导航、筛选标签和分类页显示的题材名称。"
                      },
                      "intro": {
                        "type": "string",
                        "maxLength": 240,
                        "description": "分类页标题下的题材简介，可为空字符串。"
                      }
                    },
                    "required": [
                      "name",
                      "intro"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "move": {
                        "type": "string",
                        "enum": [
                          "up",
                          "down"
                        ],
                        "description": "相对于当前顺序移动一位，up 为上移，down 为下移。"
                      }
                    },
                    "required": [
                      "move"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "description": "运营或超管网页登录后可改名称与简介，或单独提交 move 移动一位。已有影片继续按原 ID 关联。"
      },
      "delete": {
        "summary": "删除无影片及首页内容块引用的分类（运营或超管会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "已删除的题材标识。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
                      "maxLength": 48,
                      "description": "题材稳定标识，用于分类网址以及 Film.categoryId 的关联。"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "409": {
            "description": "仍有影片或首页板块引用这个分类。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          }
        },
        "description": "运营或超管网页登录后可删除空题材。先移走该分类下的影片，并移除引用它的首页板块。"
      }
    },
    "/admin/shelves": {
      "get": {
        "summary": "读取包含已隐藏板块的首页编排（运营或超管会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "管理侧题材、全部板块、统计周期和播放排名。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "categories": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Genre"
                      },
                      "description": "供首页板块选择的全部题材。"
                    },
                    "shelves": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/Shelf"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "hidden": {
                                "type": "boolean",
                                "description": "true 表示在首页隐藏该板块，仍保留运营配置。"
                              }
                            },
                            "required": [
                              "hidden"
                            ]
                          }
                        ]
                      },
                      "description": "按展示顺序列出的全部板块，包括隐藏项。"
                    },
                    "hotDays": {
                      "type": "integer",
                      "enum": [
                        7,
                        30
                      ],
                      "description": "当前热播榜的统计窗口，单位为自然日，可选 7 或 30；历史数据缺省时按 7 天。"
                    },
                    "ranking": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "影片的稳定标识，用于详情地址、运营接口及片库关联。"
                          },
                          "title": {
                            "type": "string",
                            "description": "影片在本站展示的片名，用于卡片、详情和检索。"
                          },
                          "plays": {
                            "type": "integer",
                            "description": "统计周期内该影片实际正片起播次数。"
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "plays"
                        ],
                        "additionalProperties": false
                      },
                      "description": "统计周期内的已上架热播影片，最多 12 条。"
                    }
                  },
                  "required": [
                    "categories",
                    "shelves",
                    "hotDays",
                    "ranking"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          }
        },
        "description": "运营或超管网页登录后读取首页编排、隐藏板块和热播榜，用于预览前台选片来源。"
      },
      "post": {
        "summary": "为已有分类新增首页板块（运营或超管会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "201": {
            "description": "新板块的标识，与所选题材 ID 一致。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "首页板块标识。latest 对应最新上架，popular 对应热播，其余取所属题材 ID。"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "409": {
            "description": "该题材已存在首页板块。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "首页板块标识。latest 对应最新上架，popular 对应热播，其余取所属题材 ID。"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "description": "首页板块的展示标题。"
                  },
                  "intro": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "首页板块标题下的副标题，可为空字符串。"
                  }
                },
                "required": [
                  "id",
                  "title",
                  "intro"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "description": "运营或超管网页登录后可为已有题材添加一个首页板块。同一题材最多一个板块，新增后排在末尾。"
      }
    },
    "/admin/shelves/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "首页板块标识。latest 对应最新上架，popular 对应热播，其余取所属题材 ID。"
        }
      ],
      "patch": {
        "summary": "编辑板块文案、调整顺序或切换显示（运营或超管会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "修改后的板块标识；设置热播周期时一并返回天数。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "首页板块标识。latest 对应最新上架，popular 对应热播，其余取所属题材 ID。"
                    },
                    "hotDays": {
                      "type": "integer",
                      "enum": [
                        7,
                        30
                      ],
                      "description": "当前热播榜的统计窗口，单位为自然日，可选 7 或 30；历史数据缺省时按 7 天。"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          },
          "409": {
            "description": "板块已在该方向的排序边界。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 48,
                        "description": "首页板块的展示标题。"
                      },
                      "intro": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "首页板块标题下的副标题，可为空字符串。"
                      }
                    },
                    "required": [
                      "title",
                      "intro"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "move": {
                        "type": "string",
                        "enum": [
                          "up",
                          "down"
                        ],
                        "description": "相对于当前顺序移动一位，up 为上移，down 为下移。"
                      }
                    },
                    "required": [
                      "move"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "hidden": {
                        "type": "boolean",
                        "description": "true 表示在首页隐藏该板块，仍保留运营配置。"
                      }
                    },
                    "required": [
                      "hidden"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "hotDays": {
                        "type": "integer",
                        "enum": [
                          7,
                          30
                        ],
                        "description": "仅 popular 板块可设置。以 UTC+8 自然日计算，取最近 7 或 30 天的实际起播次数。"
                      }
                    },
                    "required": [
                      "hotDays"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "description": "运营或超管网页登录后每次选择一种操作：改文案、移动一位、切换可见性，或为 popular 设置统计周期。"
      },
      "delete": {
        "summary": "移除分类板块并保留影片与分类（运营或超管会话）",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "从首页编排中移除的板块标识。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "首页板块标识。latest 对应最新上架，popular 对应热播，其余取所属题材 ID。"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          },
          "409": {
            "description": "内置板块不能移除，请使用隐藏操作。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "运营或超管网页登录后可移除题材板块，题材与影片仍保留。latest 和 popular 两个内置板块可隐藏。"
      }
    },
    "/admin/films/{id}/recommendation": {
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "影片的稳定标识，用于详情地址、运营接口及片库关联。"
        }
      ],
      "put": {
        "summary": "推荐或取消推荐分类影片",
        "x-sw-protocol": "plain-json",
        "security": [
          {
            "editor": []
          }
        ],
        "responses": {
          "200": {
            "description": "更新后的运营影片资料，含当前推荐状态。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedFilm"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidCredential"
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          },
          "413": {
            "$ref": "#/components/responses/BodyTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/JsonRequired"
          },
          "403": {
            "$ref": "#/components/responses/PermissionDenied"
          },
          "404": {
            "$ref": "#/components/responses/ResourceNotFound"
          },
          "409": {
            "description": "影片仍为草稿，需先上架再推荐。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "recommended": {
                    "type": "boolean",
                    "description": "true 表示推荐到所属题材板块，false 表示取消推荐。"
                  }
                },
                "required": [
                  "recommended"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "description": "运营或超管会话、读写 PAT 可将已上架影片推荐到所属题材板块，或取消推荐。重复提交相同状态会保留原推荐时间。"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "editor": {
        "type": "http",
        "scheme": "bearer",
        "description": "在 Authorization 请求头填写 Bearer 和本人凭证。网页登录签发会话，运营 MCP 使用管理台签发的 PAT。各操作的说明列出可接受的凭证。"
      }
    },
    "schemas": {
      "Film": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "影片的稳定标识，用于详情地址、运营接口及片库关联。"
          },
          "categoryId": {
            "type": "string",
            "description": "所属题材的稳定 ID，对应 categories[].id。改名后关联仍有效。",
            "example": "scifi"
          },
          "title": {
            "type": "string",
            "description": "影片在本站展示的片名，用于卡片、详情和检索。",
            "minLength": 1,
            "maxLength": 100
          },
          "original": {
            "type": "string",
            "description": "原片名，可用于检索，也可与展示片名相同。",
            "minLength": 1,
            "maxLength": 160
          },
          "synopsis": {
            "type": "string",
            "description": "适合卡片或推广位的短简介，最多 500 个字符。",
            "minLength": 1,
            "maxLength": 500
          },
          "story": {
            "type": "string",
            "description": "影片详情页使用的长篇剧情介绍，最多 3500 个字符。",
            "minLength": 1,
            "maxLength": 3500
          },
          "addedAt": {
            "type": "string",
            "description": "最新上架板块的排序时间。种子和新建草稿可为 YYYY-MM-DD，上架或重新上架时更新为含毫秒的 UTC 时间（例如 2026-11-30T09:30:00.000Z）。"
          },
          "year": {
            "type": "integer",
            "description": "影片上映年份，整数，允许 1880 至 2100。",
            "minimum": 1880,
            "maximum": 2100
          },
          "previewSeconds": {
            "type": "integer",
            "description": "教学播放片段的时长，单位为秒，允许 1 至 86400。"
          },
          "previewKind": {
            "type": "string",
            "description": "片段类型。poster 表示动态海报，concept 表示概念预告。未指定时省略。"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "供详情页展示的作品标签，每项是一段文字，可以为空数组。",
            "maxItems": 24
          },
          "actors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "按展示顺序排列的主演姓名，可以为空数组。",
            "maxItems": 24
          },
          "directors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "导演姓名列表，每部作品恰有一位导演。",
            "minItems": 1,
            "maxItems": 1
          },
          "poster": {
            "type": "string",
            "format": "uri",
            "description": "影片竖版封面的完整 HTTP 或 HTTPS 图片地址。"
          },
          "mediaSrc": {
            "type": "string",
            "format": "uri",
            "description": "播放器和预览使用的教学片段 URL，多部影片可以共用同一素材。"
          },
          "thumbSrc": {
            "type": "string",
            "format": "uri",
            "description": "可选的首页推广位缩略图 URL，未配置时省略。"
          },
          "bannerSrc": {
            "type": "string",
            "format": "uri",
            "description": "可选的横幅背景图 URL，未配置时省略。"
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri",
            "description": "可选的片方或作品资料来源 URL，未提供时省略。"
          },
          "recommendedAt": {
            "type": "string",
            "format": "date-time",
            "description": "本片最近一次被运营推荐到题材板块的时间，采用 ISO 8601。取消推荐后省略。"
          }
        },
        "required": [
          "id",
          "categoryId",
          "title",
          "original",
          "synopsis",
          "story",
          "addedAt",
          "year",
          "previewSeconds",
          "tags",
          "actors",
          "directors",
          "poster",
          "mediaSrc"
        ],
        "description": "已上架影片的公开资料。"
      },
      "Genre": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "题材稳定标识，用于分类网址以及 Film.categoryId 的关联。"
          },
          "name": {
            "type": "string",
            "description": "导航、筛选标签和分类页显示的题材名称。"
          },
          "intro": {
            "type": "string",
            "description": "分类页标题下的题材简介，可为空字符串。"
          }
        },
        "required": [
          "id",
          "name",
          "intro"
        ],
        "description": "导航和分类筛选共用的题材。"
      },
      "Shelf": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "首页板块标识。latest 对应最新上架，popular 对应热播，其余取所属题材 ID。"
          },
          "title": {
            "type": "string",
            "description": "首页板块的展示标题。"
          },
          "intro": {
            "type": "string",
            "description": "首页板块标题下的副标题，可为空字符串。"
          },
          "promoId": {
            "type": "string",
            "description": "该板块配置的推广影片 ID，关联 films[].id。公开片库只返回仍已上架的推广片。"
          }
        },
        "required": [
          "id",
          "title",
          "intro"
        ],
        "description": "首页的一个影片展示板块。"
      },
      "FilmCatalog": {
        "type": "object",
        "properties": {
          "films": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Film"
            },
            "description": "已上架影片的完整列表，可按稳定 ID 查找详情。"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Genre"
            },
            "description": "按导航顺序排列的题材列表。"
          },
          "shelves": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Shelf"
            },
            "description": "按首页展示顺序排列的可见板块。"
          },
          "featuredId": {
            "type": "string",
            "nullable": true,
            "description": "本站当前热播榜首的影片 ID，对应 films[].id。没有上榜影片时为 null。",
            "example": null
          },
          "popular": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "对应 films[].id 的稳定影片标识。"
            },
            "description": "配置周期内按正片播放次数倒排的已上架影片 ID，最多 12 部。空榜返回空数组。"
          },
          "hotDays": {
            "type": "integer",
            "enum": [
              7,
              30
            ],
            "description": "当前热播榜的统计窗口，单位为自然日，可选 7 或 30；历史数据缺省时按 7 天。"
          }
        },
        "required": [
          "films",
          "categories",
          "shelves",
          "featuredId",
          "popular"
        ],
        "description": "匿名 WEB 使用的完整公开片库。"
      },
      "FilmPatch": {
        "type": "object",
        "minProperties": 1,
        "additionalProperties": false,
        "properties": {
          "categoryId": {
            "type": "string",
            "description": "所属题材的稳定 ID，对应 categories[].id。改名后关联仍有效。"
          },
          "title": {
            "type": "string",
            "description": "影片在本站展示的片名，用于卡片、详情和检索。",
            "minLength": 1,
            "maxLength": 100
          },
          "original": {
            "type": "string",
            "description": "原片名，可用于检索，也可与展示片名相同。",
            "minLength": 1,
            "maxLength": 160
          },
          "synopsis": {
            "type": "string",
            "description": "适合卡片或推广位的短简介，最多 500 个字符。",
            "minLength": 1,
            "maxLength": 500
          },
          "story": {
            "type": "string",
            "description": "影片详情页使用的长篇剧情介绍，最多 3500 个字符。",
            "minLength": 1,
            "maxLength": 3500
          },
          "year": {
            "type": "integer",
            "description": "影片上映年份，整数，允许 1880 至 2100。",
            "minimum": 1880,
            "maximum": 2100
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "供详情页展示的作品标签，每项是一段文字，可以为空数组。",
            "maxItems": 24
          },
          "actors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "按展示顺序排列的主演姓名，可以为空数组。",
            "maxItems": 24
          },
          "directors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "导演姓名列表，每部作品恰有一位导演。",
            "minItems": 1,
            "maxItems": 1
          },
          "poster": {
            "type": "string",
            "format": "uri",
            "description": "影片竖版封面的完整 HTTP 或 HTTPS 图片地址。"
          },
          "mediaSrc": {
            "type": "string",
            "format": "uri",
            "description": "播放器和预览使用的教学片段 URL，多部影片可以共用同一素材。"
          },
          "thumbSrc": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "可选的首页推广位缩略图 URL。更新时传 null 可清除，省略则保留原值。"
          },
          "bannerSrc": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "可选的横幅背景图 URL。更新时传 null 可清除，省略则保留原值。"
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "可选的片方或作品资料来源 URL。更新时传 null 可清除，省略则保留原值。"
          },
          "previewSeconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 86400,
            "description": "教学播放片段的时长，单位为秒，允许 1 至 86400。"
          },
          "previewKind": {
            "type": "string",
            "nullable": true,
            "enum": [
              "poster",
              "concept",
              null
            ],
            "description": "片段类型。poster 表示动态海报，concept 表示概念预告。更新时传 null 可清除，省略则保留原值。"
          }
        },
        "description": "运营局部更新，只提交需要修改的字段。"
      },
      "Account": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "运营账号的内部数字 ID，用于定位要维护的账号。"
          },
          "username": {
            "type": "string",
            "description": "本站运营账号的登录名，按大写保存；学员超管默认使用课程工号。"
          },
          "role": {
            "type": "string",
            "enum": [
              "super",
              "operator"
            ],
            "description": "本站权限角色，super 为超管，operator 为运营。"
          },
          "enabled": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "账号状态，1 表示启用，0 表示停用。"
          }
        },
        "required": [
          "id",
          "username",
          "role",
          "enabled"
        ],
        "description": "运营账号的公开管理资料。"
      },
      "AccessToken": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "本人令牌记录的数字 ID，用于撤销指定令牌。"
          },
          "name": {
            "type": "string",
            "description": "由签发者填写的用途名称，便于识别和撤销。"
          },
          "scope": {
            "type": "string",
            "enum": [
              "read",
              "write"
            ],
            "description": "read 可查询影片，write 可查询和维护影片。账号与令牌管理需要网页登录会话。"
          },
          "created": {
            "type": "integer",
            "description": "令牌签发时间，Unix 毫秒时间戳。"
          },
          "expires": {
            "type": "integer",
            "description": "令牌过期时间，Unix 毫秒时间戳。到期后请求会被拒绝。",
            "example": 1798761600000
          },
          "revoked": {
            "type": "integer",
            "nullable": true,
            "description": "撤销时间，Unix 毫秒时间戳。仍未撤销时为 null。"
          }
        },
        "required": [
          "id",
          "name",
          "scope",
          "created",
          "expires",
          "revoked"
        ],
        "description": "供本人核对的令牌元数据。"
      },
      "Login": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "本次新建的会话凭证记录 ID。"
          },
          "username": {
            "type": "string",
            "description": "本站运营账号的登录名，按大写保存；学员超管默认使用课程工号。"
          },
          "role": {
            "type": "string",
            "enum": [
              "super",
              "operator"
            ],
            "description": "本站权限角色，super 为超管，operator 为运营。"
          },
          "token": {
            "type": "string",
            "description": "网页登录会话凭证，用于后续 Bearer 请求，有效期 8 小时。"
          }
        },
        "required": [
          "id",
          "username",
          "role",
          "token"
        ],
        "description": "本次登录建立的会话及持有人身份。"
      },
      "ManagedFilm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "影片的稳定标识，用于详情地址、运营接口及片库关联。"
          },
          "categoryId": {
            "type": "string",
            "description": "所属题材的稳定 ID，对应 categories[].id。改名后关联仍有效。"
          },
          "title": {
            "type": "string",
            "description": "影片在本站展示的片名，用于卡片、详情和检索。",
            "minLength": 1,
            "maxLength": 100
          },
          "original": {
            "type": "string",
            "description": "原片名，可用于检索，也可与展示片名相同。",
            "minLength": 1,
            "maxLength": 160
          },
          "synopsis": {
            "type": "string",
            "description": "适合卡片或推广位的短简介，最多 500 个字符。",
            "minLength": 1,
            "maxLength": 500
          },
          "story": {
            "type": "string",
            "description": "影片详情页使用的长篇剧情介绍，最多 3500 个字符。",
            "minLength": 1,
            "maxLength": 3500
          },
          "addedAt": {
            "type": "string",
            "description": "最新上架板块的排序时间。种子和新建草稿可为 YYYY-MM-DD，上架或重新上架时更新为含毫秒的 UTC 时间（例如 2026-11-30T09:30:00.000Z）。"
          },
          "year": {
            "type": "integer",
            "description": "影片上映年份，整数，允许 1880 至 2100。",
            "minimum": 1880,
            "maximum": 2100
          },
          "previewSeconds": {
            "type": "integer",
            "description": "教学播放片段的时长，单位为秒，允许 1 至 86400。"
          },
          "previewKind": {
            "type": "string",
            "description": "片段类型。poster 表示动态海报，concept 表示概念预告。未指定时省略。"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "供详情页展示的作品标签，每项是一段文字，可以为空数组。",
            "maxItems": 24
          },
          "actors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "按展示顺序排列的主演姓名，可以为空数组。",
            "maxItems": 24
          },
          "directors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "导演姓名列表，每部作品恰有一位导演。",
            "minItems": 1,
            "maxItems": 1
          },
          "poster": {
            "type": "string",
            "format": "uri",
            "description": "影片竖版封面的完整 HTTP 或 HTTPS 图片地址。"
          },
          "mediaSrc": {
            "type": "string",
            "format": "uri",
            "description": "播放器和预览使用的教学片段 URL，多部影片可以共用同一素材。"
          },
          "thumbSrc": {
            "type": "string",
            "format": "uri",
            "description": "可选的首页推广位缩略图 URL，未配置时省略。"
          },
          "bannerSrc": {
            "type": "string",
            "format": "uri",
            "description": "可选的横幅背景图 URL，未配置时省略。"
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri",
            "description": "可选的片方或作品资料来源 URL，未提供时省略。"
          },
          "published": {
            "type": "boolean",
            "description": "是否已上架。true 时影片可进入公开片库，false 时仅能在运营侧查看。"
          },
          "recommendedAt": {
            "type": "string",
            "format": "date-time",
            "description": "本片最近一次被运营推荐到题材板块的时间，采用 ISO 8601。取消推荐后省略。"
          }
        },
        "required": [
          "id",
          "categoryId",
          "title",
          "original",
          "synopsis",
          "story",
          "addedAt",
          "year",
          "previewSeconds",
          "tags",
          "actors",
          "directors",
          "poster",
          "mediaSrc",
          "published"
        ],
        "description": "运营侧可见的影片资料，含草稿和上架状态。"
      },
      "FilmCreate": {
        "type": "object",
        "minProperties": 1,
        "additionalProperties": false,
        "properties": {
          "categoryId": {
            "type": "string",
            "description": "所属题材的稳定 ID，对应 categories[].id。改名后关联仍有效。"
          },
          "title": {
            "type": "string",
            "description": "影片在本站展示的片名，用于卡片、详情和检索。",
            "minLength": 1,
            "maxLength": 100
          },
          "original": {
            "type": "string",
            "description": "原片名，可用于检索，也可与展示片名相同。",
            "minLength": 1,
            "maxLength": 160
          },
          "synopsis": {
            "type": "string",
            "description": "适合卡片或推广位的短简介，最多 500 个字符。",
            "minLength": 1,
            "maxLength": 500
          },
          "story": {
            "type": "string",
            "description": "影片详情页使用的长篇剧情介绍，最多 3500 个字符。",
            "minLength": 1,
            "maxLength": 3500
          },
          "year": {
            "type": "integer",
            "description": "影片上映年份，整数，允许 1880 至 2100。",
            "minimum": 1880,
            "maximum": 2100
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "供详情页展示的作品标签，每项是一段文字，可以为空数组。",
            "maxItems": 24
          },
          "actors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "按展示顺序排列的主演姓名，可以为空数组。",
            "maxItems": 24
          },
          "directors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "导演姓名列表，每部作品恰有一位导演。",
            "minItems": 1,
            "maxItems": 1
          },
          "poster": {
            "type": "string",
            "format": "uri",
            "description": "影片竖版封面的完整 HTTP 或 HTTPS 图片地址。"
          },
          "mediaSrc": {
            "type": "string",
            "format": "uri",
            "description": "播放器和预览使用的教学片段 URL，多部影片可以共用同一素材。"
          },
          "thumbSrc": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "可选的首页推广位缩略图 URL，未配置时省略；创建时也可传 null。"
          },
          "bannerSrc": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "可选的横幅背景图 URL，未配置时省略；创建时也可传 null。"
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "可选的片方或作品资料来源 URL，未提供时省略；创建时也可传 null。"
          },
          "previewSeconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 86400,
            "description": "教学播放片段的时长，单位为秒，允许 1 至 86400。"
          },
          "previewKind": {
            "type": "string",
            "nullable": true,
            "enum": [
              "poster",
              "concept",
              null
            ],
            "description": "片段类型。poster 表示动态海报，concept 表示概念预告。未指定时省略；创建时也可传 null。"
          }
        },
        "required": [
          "title",
          "original",
          "year",
          "categoryId",
          "directors",
          "synopsis",
          "story",
          "poster",
          "mediaSrc",
          "previewSeconds"
        ],
        "description": "创建草稿时填写的影片资料，影片 ID 由服务端分配。"
      },
      "ApiError": {
        "type": "object",
        "description": "请求失败时返回的 JSON 对象。",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "供调用者判断失败原因的中文提示。"
          }
        }
      }
    },
    "responses": {
      "InvalidBody": {
        "description": "请求体或业务字段未通过校验，具体原因见 error。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "InvalidCredential": {
        "description": "凭证缺失、失效或已撤销，请重新登录或更换本人令牌。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "PermissionDenied": {
        "description": "当前角色或凭证种类没有执行此操作的权限。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "ResourceNotFound": {
        "description": "指定的业务对象不存在或当前账号无法访问。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "BodyTooLarge": {
        "description": "JSON 请求体超过 32768 字节。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "JsonRequired": {
        "description": "请求体需要 application/json。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "InvalidQuery": {
        "description": "查询条件无效，请核对枚举值、统计天数或页码。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      }
    }
  }
}
