3.7.3 • Published 2 months ago
@dongjak-extensions/http-client v3.7.3
简介
用ts
写的声明式http客户端
class TestApi implements Api {
// @ts-ignore
@Post('rest/zm_used_car/list')
submitToStoreArrangement(@RequestBody() _data: {}): Promise<any> {
return undefined as any
}
}
const Axios = axios.create({
baseURL: "http://localhost:8081/",
timeout: 1000 * 10,
responseType: 'json',
})
//await Axios.get("http://localhost:8081")
const carsApi = createApi(TestApi, Axios)
// console.log(carsApi)
const res = await carsApi.submitToStoreArrangement({
"pageNo": 1,
"pageSize": 10
})
3.7.3
2 months ago
3.7.2
2 months ago
3.7.1
3 months ago
3.4.0
3 months ago
3.7.0
3 months ago
3.6.0
3 months ago
3.5.0
3 months ago
3.3.1
3 months ago
3.3.0
3 months ago
3.2.0
3 months ago
3.1.0
3 months ago
3.0.0
4 months ago
2.0.0
5 months ago
1.6.0
7 months ago
1.5.0
7 months ago
1.4.0
7 months ago
1.3.0
7 months ago
1.2.0
7 months ago
1.1.0
7 months ago
1.0.4
8 months ago
1.0.3
8 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago