refactor(api): 对齐后端字段,移除前端臆造字段

This commit is contained in:
2026-08-21 02:46:28 +08:00
parent b0759becbb
commit 306d709cc7
15 changed files with 31 additions and 66 deletions
+1 -5
View File
@@ -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