ckgl/common/http/index.ts
2024-12-21 18:03:43 +08:00

33 lines
609 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 = {}) => {
return httpRequest(
url,
'PUT',
data
)
}
export const deleteAction = (url : string, data = {}) => {
return httpRequest(
url,
'DELETE',
data
)
}
// 默认全部导出 import api from '@/common/vmeitime-http/'