add chapter-index
@@ -37,3 +37,5 @@ paths:
$ref: "./resources/sentence/index.yaml"
/corpus:
$ref: "./resources/corpus/corpus/index.yaml"
+ /chapter-index:
+ $ref: "./resources/chapter-index/index.yaml"
@@ -14,6 +14,12 @@ get:
- public
- studio
- user
+ - name: updated_at
+ in: query
+ description: 返回在这个时间之后更新(含新建)的channel列表。app知道目前手机离线包里面的channel表的最新一条记录的更新时间。把这个时间传进去就行。例子 2023-09-18T05:39:51.000000Z
+ schema:
+ type: string
+ format: date-time
- name: search
in: query
description: 搜索关键字
@@ -58,7 +64,9 @@ get:
type: object
properties:
rows:
- type: object
- $ref: "./channel.yaml"
+ type: array
+ items:
+ type: object
+ $ref: "./channel.yaml"
count:
type: number
@@ -0,0 +1,27 @@
+properties:
+ id:
+ type: integer
+ book:
+ para:
+ lang:
+ all_trans:
+ public:
+ created_at:
+ updated_at:
+ channel_id:
+ progress:
+ title:
+ uid:
+ summary:
@@ -0,0 +1,68 @@
+get:
+ summary: 章节信息列表
+ tags:
+ - chapter-index
+ description: 返回多行数据。支持分页。
+ parameters:
+ - name: view
+ required: true
+ description: 查询的内容的类型 public(公开的版本风格)
+ enum:
+ - public
+ - name: order
+ description: 排序字段
+ - name: dir
+ description: 排序方向
+ - desc
+ - asc
+ - name: limit
+ description: 每次提取记录数
+ type: number
+ minimum: 1
+ maximum: 1000
+ - name: offset
+ description: 从第几条记录开始提取
+ responses:
+ "200": # status code
+ description: A JSON array of user names
+ content:
+ application/json:
+ properties:
+ ok:
+ type: boolean
+ message:
+ data:
+ rows:
+ $ref: "./data.yaml"
+ count:
+ description: 符合要求的记录总数