mirror of
https://github.com/Teamlinker/Teamlinker.git
synced 2025-06-03 03:00:17 +00:00
34 lines
765 B
TypeScript
34 lines
765 B
TypeScript
import {ECommon_Services} from "../types"
|
|
import {ECommon_HttpApi_Method} from "./types"
|
|
|
|
const api={
|
|
baseUrl:"/file",
|
|
service:ECommon_Services.File,
|
|
routes:{
|
|
upload:{
|
|
method:ECommon_HttpApi_Method.POST,
|
|
path:"/upload",
|
|
req:<{
|
|
file:string,
|
|
meta?:string
|
|
}>{},
|
|
res:<{
|
|
id:string,
|
|
path:string,
|
|
meta?:string
|
|
}>{}
|
|
},
|
|
getPath:{
|
|
method:ECommon_HttpApi_Method.GET,
|
|
path:"/item",
|
|
req:<{
|
|
fileId:string
|
|
}>{},
|
|
res:<{
|
|
uri:string
|
|
}>{}
|
|
}
|
|
}
|
|
}
|
|
|
|
export default api |