Files
opencloud/src/types/database.ts
T
Mplan c78b2f8ca5 feat(api)!: 适配新版后端接口
切换到 Cookie 会话和新版 DTO,并迁移画廊、地图、个人主页、百科及上传流程。停用后端尚未实现的账号与徽章功能,同时纳入新版 API 契约文档。

BREAKING CHANGE: 前端不再兼容旧 /api/v1 接口和 refresh token 流程。
2026-08-16 00:34:04 +08:00

38 lines
798 B
TypeScript

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
}
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'
is_hidden: boolean
created_at: string
}
export interface Profile {
id: string
username: string
avatar_url: string | null
role: 'user' | 'admin'
is_disabled: boolean
created_at: string
}