mirror of
https://github.com/stardrophere/InsightRadar.git
synced 2026-06-06 00:52:50 +08:00
37 lines
613 B
TypeScript
37 lines
613 B
TypeScript
export interface UserProfile {
|
|
id: number
|
|
email: string
|
|
nickname: string | null
|
|
avatar_url: string | null
|
|
gender: string
|
|
created_at: string
|
|
}
|
|
|
|
export interface AuthTokenResponse {
|
|
access_token: string
|
|
token_type: string
|
|
expires_in: number
|
|
user: UserProfile
|
|
}
|
|
|
|
export interface MessageResponse {
|
|
message: string
|
|
}
|
|
|
|
export interface LoginPayload {
|
|
email: string
|
|
password: string
|
|
}
|
|
|
|
export interface LoginWithCodePayload {
|
|
email: string
|
|
verification_code: string
|
|
}
|
|
|
|
export interface RegisterPayload {
|
|
email: string
|
|
password: string
|
|
verification_code: string
|
|
nickname?: string
|
|
}
|