feat: add views field to news response schema and update dashboard pages

This commit is contained in:
Ardeman
2025-03-24 15:45:43 +08:00
parent 1c33eba834
commit 65f7bbe0aa
4 changed files with 29 additions and 15 deletions
+1
View File
@@ -23,6 +23,7 @@ export const newsResponseSchema = z.object({
created_at: z.string(),
updated_at: z.string(),
author: authorSchema,
views: z.number(),
})
const dataResponseSchema = z.object({
data: z.array(newsResponseSchema),