52 lines
846 B
JavaScript
52 lines
846 B
JavaScript
import request from '@/utils/request'
|
|
|
|
|
|
// 分页查询所有的订单信息
|
|
export function getCostListApi(query) {
|
|
return request({
|
|
url: 'MessageCost',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
//
|
|
export function getInfoApi(id) {
|
|
return request({
|
|
url: 'MessageCost/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
//
|
|
export function deleteCostApi(id) {
|
|
return request({
|
|
url: 'MessageCost/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
//
|
|
export function saveCostApi(data) {
|
|
return request({
|
|
url: 'MessageCost',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 保存修改信息
|
|
export function updateCostApi(data) {
|
|
return request({
|
|
url: 'MessageCost',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function getCostReListApi(query) {
|
|
return request({
|
|
url: 'MessageCost/getRechargeList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|