feat: 拆分上链与出库管理界面
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user