32 lines
544 B
TypeScript
32 lines
544 B
TypeScript
|
|
export type LoginParams = {
|
|
username?: string
|
|
}
|
|
|
|
export type LoginUserInfo = {
|
|
id: number
|
|
username: string
|
|
nickname: string
|
|
playx_user_id: string
|
|
token: string
|
|
refresh_token: string
|
|
expires_in: number
|
|
}
|
|
|
|
export type LoginData = {
|
|
userInfo: LoginUserInfo
|
|
}
|
|
|
|
export type LoginResponse = ApiResponse<LoginData>
|
|
|
|
|
|
export interface ValidateTokenData {
|
|
session_id:string;
|
|
user_id:string;
|
|
name:string;
|
|
token_expire_at:string;
|
|
}
|
|
|
|
|
|
export type ValidateTokenResponse = ApiResponse<ValidateTokenData>
|