Teamlinker/code/common/routes/file.ts
sx1989827 ae4fdcc4ab add
2021-12-06 22:45:28 +08:00

27 lines
617 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
}>{},
res:<string>{}
},
getPath:{
method:ECommon_HttpApi_Method.GET,
path:"/item",
req:<{
fileId:string
}>{},
res:<string>{}
}
}
}
export=api