diff --git a/README.md b/README.md index 5f2f687..ee08b83 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ go run ./cmd/fanqie | 接口 | 方法 | 说明 | 参数 | | ------ | ------ | ------ | ------ | -| `/search` | GET | 搜索书籍 | `query`(或 `key`), `tab_type`, `offset` | +| `/search` | GET | 搜索书籍 | `query`(或 `key`), `tab_type`, `offset`(`search_tabs` 仅返回匹配 `tab_type` 的 tab) | | `/detail` | GET | 书籍详情 | `book_id` | | `/info` | GET | 书籍详情(同 detail) | `book_id` | | `/catalog` | GET | 章节目录 | `book_id` | diff --git a/openapi.yaml b/openapi.yaml index 5196cfe..0cfc445 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -171,12 +171,12 @@ paths: example: 0 - name: tab_type in: query - description: 搜索类型,默认 3 + description: 搜索类型,默认 3;响应 search_tabs 仅保留匹配该值的 tab schema: { type: integer, default: 3 } example: 3 responses: "200": - description: 搜索结果(上游转发,结构以实际返回为准) + description: 搜索结果(search_tabs 已按请求的 tab_type 过滤,仅保留匹配项) content: application/json: schema: