MaxKB/ui/src/api/image.ts
wangdan-fit2cloud b16353fbe8
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
feat: knowledge
2025-05-30 14:34:24 +08:00

16 lines
307 B
TypeScript

import { Result } from '@/request/Result'
import { get, post, del, put } from '@/request/index'
const prefix = '/image'
/**
* 上传图片
* @param 参数 file:file
*/
const postImage: (data: any) => Promise<Result<any>> = (data) => {
return post(`${prefix}`, data)
}
export default {
postImage
}