feat(api)!: 适配新版后端接口
切换到 Cookie 会话和新版 DTO,并迁移画廊、地图、个人主页、百科及上传流程。停用后端尚未实现的账号与徽章功能,同时纳入新版 API 契约文档。 BREAKING CHANGE: 前端不再兼容旧 /api/v1 接口和 refresh token 流程。
This commit is contained in:
+1
-16
@@ -4,6 +4,7 @@ export interface CloudType {
|
||||
name_en: string
|
||||
genus: string
|
||||
rarity: 'common' | 'uncommon' | 'rare'
|
||||
rarity_value: number
|
||||
description: string | null
|
||||
icon_url: string | null
|
||||
created_at: string
|
||||
@@ -34,19 +35,3 @@ export interface Profile {
|
||||
is_disabled: boolean
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export interface UserCollection {
|
||||
id: string
|
||||
user_id: string
|
||||
cloud_type_id: number
|
||||
first_cloud_id: string | null
|
||||
unlocked_at: string
|
||||
}
|
||||
|
||||
export interface Reaction {
|
||||
id: string
|
||||
user_id: string
|
||||
cloud_id: string
|
||||
emoji: string
|
||||
created_at: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user