#44 完了
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
import { CATEGORIES, USER_ROLES } from '@/consts'
|
||||
|
||||
export type Category = typeof CATEGORIES[number]
|
||||
|
||||
export type Post = {
|
||||
id: number
|
||||
url: string
|
||||
@@ -9,11 +13,13 @@ export type Post = {
|
||||
export type Tag = {
|
||||
id: number
|
||||
name: string
|
||||
category: string
|
||||
category: Category
|
||||
count?: number}
|
||||
|
||||
export type User = {
|
||||
id: number
|
||||
name: string | null
|
||||
inheritanceCode: string
|
||||
role: string }
|
||||
role: UserRole }
|
||||
|
||||
export type UserRole = typeof USER_ROLES[number]
|
||||
|
||||
Reference in New Issue
Block a user