[feature/backend] add categories param in posts
This commit is contained in:
parent
958e3c2886
commit
be8bf22017
21 changed files with 448 additions and 281 deletions
|
@ -103,6 +103,7 @@ Post:
|
|||
- slug
|
||||
- status
|
||||
- contents
|
||||
- categories
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
|
@ -117,6 +118,11 @@ Post:
|
|||
type: array
|
||||
items:
|
||||
$ref: '#/PostContent'
|
||||
categories:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/Category'
|
||||
description: 文章所属分类
|
||||
created_at:
|
||||
type: string
|
||||
format: date-time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue