feat: 拆分上链与出库管理界面

This commit is contained in:
Nixevol
2026-07-16 11:50:24 +08:00
parent ebc2603815
commit fee1efc490
22 changed files with 2844 additions and 250 deletions
+11
View File
@@ -24,6 +24,17 @@ export function fetchTrace(shortCode: string): Promise<any> {
return instance.get(`/public/trace/${shortCode}`) as unknown as Promise<any>;
}
export function fetchTraceOutboundImages(
shortCode: string,
page: number,
pageSize = 20,
preview?: { token?: string; state?: 'inactive' | 'active' },
): Promise<any> {
return instance.get(`/public/trace/${shortCode}/outbound-images`, {
params: { page, pageSize, ...preview },
}) as unknown as Promise<any>;
}
// 后台预览:凭时间令牌访问,零副作用(不激活/不计数/不写日志);state 控制未激活/已激活形态
export function fetchTracePreview(shortCode: string, token: string, state: 'inactive' | 'active'): Promise<any> {
return instance.get(`/public/trace/${shortCode}/preview`, { params: { token, state } }) as unknown as Promise<any>;