You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

96 lines
1.6 KiB

import axiosApi from '../AxiosApi.js'
const apiList = {
page: {
method: 'POST',
url: `/store/creditOrderDetail/page`,
},
query: {
method: 'POST',
url: `/store/creditOrderDetail/query`,
},
update: {
method: 'PUT',
url: `/store/creditOrderDetail`
},
save: {
method: 'POST',
url: `/store/creditOrderDetail`
},
delete: {
method: 'DELETE',
url: `/store/creditOrderDetail`
},
export: {
method: 'POST',
url: `/store/creditOrderDetail/export`
},
preview: {
method: 'POST',
url: `/store/creditOrderDetail/preview`
},
import: {
method: 'POST',
url: `/store/creditOrderDetail/import`
}
}
export default {
page (data, custom = {}) {
return axiosApi({
...apiList.page,
data,
custom
})
},
query (data, custom = {}) {
return axiosApi({
...apiList.query,
data,
custom
})
},
save (data, custom = {}) {
return axiosApi({
...apiList.save,
data,
custom
})
},
update (data, custom = {}) {
return axiosApi({
...apiList.update,
data,
custom
})
},
delete (data, custom = {}) {
return axiosApi({
...apiList.delete,
data,
custom
})
},
export (data, custom = {}) {
return axiosApi({
...apiList.export,
responseType: "blob",
data,
custom
})
},
preview (data, custom = {}) {
return axiosApi({
...apiList.preview,
data,
custom
})
},
import (data, custom = {}) {
return axiosApi({
...apiList.import,
data,
custom
})
}
}