feat: enhance news API schema with author and categories details,

desc: update dashboard to display author names, and improve pagination button styles
This commit is contained in:
fredy.siswanto
2025-03-06 22:49:56 +07:00
parent b61235a3b5
commit d3dc3b5016
9 changed files with 70 additions and 171 deletions
-38
View File
@@ -18,41 +18,3 @@ export type TNewsDetail = {
isPremium?: boolean
categories?: Array<string>
}
export type TTag = {
id: string
code: string
name: string
created_at: string
updated_at: string
}
export type TCategory = {
id: string
name: string
code: string
created_at: string
updated_at: string
}
export type Author = {
id: string
name: string
profile_picture: string
}
export type TKontents = {
id: string
title: string
content: string
featured_image: string
tags: TTag[]
categories: TCategory[]
is_premium: boolean
slug: string
author_id: string
live_at: string
created_at: string
updated_at: string
author: Author
}