feat: 积分流水互转合并展示,并优化个人主页与经济看板

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-18 02:37:12 +08:00
parent b3a4b8bb03
commit fa713bfc3f
9 changed files with 1098 additions and 230 deletions

View File

@@ -971,6 +971,13 @@ export async function apiGetPoints(): Promise<{ points: number }> {
return res.json();
}
export interface LedgerParty {
id: number;
username: string;
nickname: string;
avatar: string;
}
export interface PointLedgerItem {
id: number;
delta: number;
@@ -980,6 +987,9 @@ export interface PointLedgerItem {
ref_id: number;
note: string;
created_at: string;
user?: LedgerParty;
from?: LedgerParty;
to?: LedgerParty;
}
export async function apiGetPointsLedger(