| | |
| | | } |
| | | |
| | | /** |
| | | * 获取腾讯云cos sts临时访问凭证 |
| | | */ |
| | | export function getSTSToken() { |
| | | return http.request({ |
| | | url: `${api.common}/lmk/file/sts`, |
| | | method: Method.GET, |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * 获取文件访问地址 |
| | | */ |
| | | export function getFilePreviewUrl(fileKey) { |
| | | return http.request({ |
| | | url: `${api.common}/lmk/file/preview`, |
| | | method: Method.POST, |
| | | data: {fileKey: fileKey} |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * 文件上传地址 |
| | | * @type {string} |
| | | */ |
| | | export const upload = api.common + "/common/upload/file"; |
| | | export const upload = api.common + "/lmk/file/upload"; |
| | | export const multiUpload = api.common + "/lmk/file/multi/upload"; |