import http from '@/http/api.js'
import {bizConst} from './biz/biz.js'

// 上传文件
const putFile = (filePath) => {
	// console.log("putt", data)
	//console.log("http api", http)
	return http.upload(bizConst.resourcePrefix + '/oss/endpoint/put-file', {
		name: 'file',
		filePath: filePath,
	})
}

//上传文件
export default {
	putFile
}