mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-27 12:12:57 +00:00
16 lines
311 B
TypeScript
16 lines
311 B
TypeScript
import { Result } from '@/request/Result'
|
|
import { get, post, del, put } from '@/request/index'
|
|
|
|
const prefix = '/oss/file'
|
|
/**
|
|
* 上传图片
|
|
* @param 参数 file:file
|
|
*/
|
|
const postImage: (data: any) => Promise<Result<any>> = (data) => {
|
|
return post(`${prefix}`, data)
|
|
}
|
|
|
|
export default {
|
|
postImage,
|
|
}
|