- Phase 1-5: UI framework, auth, weapon schemes, color filters, system optimization - Industrial/tech design style with Chinese localization - Points to gch3n.online/delta backend API - Hardware monitor, filter editor, and all module pages
57 lines
1.0 KiB
TypeScript
57 lines
1.0 KiB
TypeScript
export interface User {
|
|
id: string;
|
|
username: string;
|
|
email: string;
|
|
avatar: string | null;
|
|
isVip: boolean;
|
|
vipExpireAt: string | null;
|
|
vipLevel: number;
|
|
}
|
|
|
|
export interface Scheme {
|
|
id: string;
|
|
title: string | null;
|
|
weaponName: string | null;
|
|
category: string | null;
|
|
userId: string;
|
|
description: string | null;
|
|
viewsCount: number;
|
|
downloadsCount: number;
|
|
likesCount: number;
|
|
favoritesCount: number;
|
|
price: number;
|
|
status: string;
|
|
isOfficial: boolean;
|
|
createdAt: string;
|
|
user?: { username: string; avatar: string | null };
|
|
}
|
|
|
|
export interface Category {
|
|
code: string;
|
|
name: string;
|
|
icon: string;
|
|
}
|
|
|
|
export interface LoginRequest {
|
|
username: string;
|
|
password: string;
|
|
installId?: string;
|
|
deviceHash?: string;
|
|
platform?: string;
|
|
osVersion?: string;
|
|
appVersion?: string;
|
|
}
|
|
|
|
export interface LoginResponse {
|
|
success: boolean;
|
|
token?: string;
|
|
user?: User;
|
|
message?: string;
|
|
}
|
|
|
|
export interface ApiResponse<T = any> {
|
|
success: boolean;
|
|
data?: T;
|
|
message?: string;
|
|
}
|