feat: add truncate for post list

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-04-24 12:07:43 +08:00
parent 99ecd3cde6
commit 45e7cf83a8
4 changed files with 26 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ export type PostListOptions = {
year?: number
sortBy?: 'categoryId' | 'title' | 'created' | 'modified'
sortOrder?: 1 | -1
truncate?: number
}
export class PostController<ResponseWrapper> implements IController {