111
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-06-17 21:48:26 +08:00
parent be90f4026b
commit 4f484f1d00
8 changed files with 606 additions and 141 deletions

View File

@@ -136,3 +136,21 @@ export async function deleteMessage(ids: number, options?: Record<string, any>)
});
}
/** 上传我的风采文件 POST /app/file/upload */
export async function uploadShowcaseFile(userId: number, file: File) {
const formData = new FormData();
formData.append('file', file);
return request(`/app/file/upload?bussinessid=${userId}`, {
method: 'POST',
data: formData,
});
}
/** 获取我的风采文件列表 GET /app/file/list */
export async function getShowcaseFileList(userId: number) {
return request('/app/file/list', {
method: 'GET',
params: { bussinessid: userId },
});
}