feat(web-admin): add OA bank receipt API clients
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e5ae28f0c7
commit
209fb7bff3
1 file changed
+30
@@ -623,3 +623,33 @@ export function fetchOaRelatedSummaries(ids: string[], mode: 'picker' | 'view' =
|
||||
params: { ids: ids.filter(Boolean).join(','), mode }
|
||||
})
|
||||
}
|
||||
|
||||
export type OaBankReceiptItem = {
|
||||
id?: string
|
||||
fileName: string
|
||||
fileUrl: string
|
||||
fileType?: string
|
||||
fileSize?: number | null
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
export function fetchOaBankReceipts(instanceId: string) {
|
||||
return request.get<{ items: OaBankReceiptItem[] }>({
|
||||
url: `${BASE}/instances/${instanceId}/bank-receipts`
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchReplaceOaBankReceipts(
|
||||
instanceId: string,
|
||||
items: Array<{
|
||||
fileUrl: string
|
||||
fileName?: string
|
||||
fileType?: string
|
||||
fileSize?: number | null
|
||||
}>
|
||||
) {
|
||||
return request.put<{ items: OaBankReceiptItem[] }>({
|
||||
url: `${BASE}/instances/${instanceId}/bank-receipts`,
|
||||
data: { items }
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user