11 lines
338 B
TypeScript
11 lines
338 B
TypeScript
import type { AddFileParams, GetAliyunKeyResult } from '@/types/base'
|
|
import { httpGet, httpPostJson } from '@/request/utils'
|
|
|
|
export function getAliyunKeyApi() {
|
|
return httpGet<GetAliyunKeyResult>(`/base/file/getAliyunKey`)
|
|
}
|
|
|
|
export function addFileApi(params: AddFileParams) {
|
|
return httpPostJson<void>(`/base/file/add`, params)
|
|
}
|