[feature/backend] add categories param in posts

This commit is contained in:
CDN 2025-02-22 02:42:55 +08:00
parent 958e3c2886
commit be8bf22017
Signed by: CDN
GPG key ID: 0C656827F9F80080
21 changed files with 448 additions and 281 deletions

View file

@ -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