ckgl/common/http/index.ts
2024-12-26 16:45:53 +08:00

35 lines
679 B
TypeScript

import httpRequest from '../http/interface'
export const postAction = (url : string, data = {}, headerCustom = {}) => {
return httpRequest(
url,
'POST',
data,
headerCustom,
)
}
export const getAction = (url : string, data = {}, headerCustom = {}) => {
return httpRequest(
url,
'GET',
data,
headerCustom,
)
}
export const putAction = (url : string, data = {}, headerCustom = {}) => {
return httpRequest(
url,
'PUT',
data,
headerCustom
)
}
export const deleteAction = (url : string, data = {}, headerCustom = {}) => {
return httpRequest(
url,
'DELETE',
data,
headerCustom
)
}
// 默认全部导出 import api from '@/common/vmeitime-http/'