chore: initial commit - maqt-desktop v0.2
- 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
This commit is contained in:
56
src/types/index.ts
Normal file
56
src/types/index.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user