welfare-admin/src/api/project/terminalTrain.js

46 lines
975 B
JavaScript

import request from '@/utils/request'
const terminalTrainApi = {
edit: '/project/terminal/addOrUpdate',
del: '/project/terminal/del',
list: '/project/terminal/pageList',
get: '/project/terminal/get'
}
export function terminalTrainEdit(params) {
return request({
url: terminalTrainApi.edit,
method: 'post',
data: params
})
}
export function terminalTrainDel (params) {
return request({
url: terminalTrainApi.del,
method: 'delete',
params: params
})
}
export function terminalTrainList(params) {
console.log("terminalTrainList------------{}", params)
return request({
url: terminalTrainApi.list,
method: 'get',
params: params
})
}
export function terminalTrainGet(params) {
console.log("terminalTrainGet------------{}", params)
return request({
url: terminalTrainApi.get,
method: 'get',
params: {
id:params,
}
})
}