Auto merge base into main

This commit is contained in:
GitHub Actions 2025-05-21 02:17:01 +00:00
commit f2c4d0d4cf

View File

@ -84,6 +84,41 @@ export const httpPost = <T>(
header,
})
}
/**
* PUT
*/
export const httpPut = <T>(
url: string,
data?: Record<string, any>,
query?: Record<string, any>,
header?: Record<string, any>,
) => {
return http<T>({
url,
data,
query,
method: 'PUT',
header,
})
}
/**
* DELETE query
*/
export const httpDelete = <T>(
url: string,
query?: Record<string, any>,
header?: Record<string, any>,
) => {
return http<T>({
url,
query,
method: 'DELETE',
header,
})
}
http.get = httpGet
http.post = httpPost
http.put = httpPut
http.delete = httpDelete