feat: http请求

This commit is contained in:
feige996
2025-04-12 14:05:58 +08:00
parent b59e899396
commit cf2a9f5aa5
2 changed files with 14 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ export const http = <T>(options: CustomRequestOptions) => {
* GET 请求
* @param url 后台地址
* @param query 请求query参数
* @param header 请求头默认为json格式
* @returns
*/
export const httpGet = <T>(
@@ -66,6 +67,7 @@ export const httpGet = <T>(
* @param url 后台地址
* @param data 请求body参数
* @param query 请求query参数post请求也支持query很多微信接口都需要
* @param header 请求头默认为json格式
* @returns
*/
export const httpPost = <T>(