refactor(api): 对齐后端字段,移除前端臆造字段
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
export interface CloudType {
|
||||
id: number
|
||||
name: string
|
||||
name_en: string
|
||||
genus: string
|
||||
rarity: 'common' | 'uncommon' | 'rare'
|
||||
rarity_value: number
|
||||
description: string | null
|
||||
icon_url: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
@@ -14,12 +12,10 @@ export interface Cloud {
|
||||
id: string
|
||||
user_id: string
|
||||
cloud_type_id: number | null
|
||||
custom_cloud_type: string | null
|
||||
image_url: string
|
||||
thumbnail_url: string | null
|
||||
latitude: number | null
|
||||
longitude: number | null
|
||||
location_name: string | null
|
||||
description: string | null
|
||||
captured_at: string | null
|
||||
status: 'pending' | 'approved' | 'rejected'
|
||||
@@ -30,7 +26,7 @@ export interface Cloud {
|
||||
export interface Profile {
|
||||
id: string
|
||||
username: string
|
||||
avatar_url: string | null
|
||||
avatar_id: string | null
|
||||
role: 'user' | 'admin'
|
||||
is_disabled: boolean
|
||||
created_at: string
|
||||
|
||||
Reference in New Issue
Block a user