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.
50 lines
834 B
50 lines
834 B
3 years ago
|
import request from '@/router/axios';
|
||
|
//列表
|
||
|
export const getList = (current, size, params) => {
|
||
|
return request({
|
||
|
url: '/api/iot-sim/simcard/page',
|
||
|
method: 'get',
|
||
|
params: {
|
||
|
...params,
|
||
|
current,
|
||
|
size,
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export const getDetail = (id) => {
|
||
|
return request({
|
||
|
url: '/api/iot-sim/simcard/detail',
|
||
|
method: 'get',
|
||
|
params: {
|
||
|
id
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
//新增
|
||
|
export const add = (row) => {
|
||
|
return request({
|
||
|
url: '/api/iot-sim/simcard/save',
|
||
|
method: 'post',
|
||
|
data: row
|
||
|
})
|
||
|
}
|
||
|
//删除
|
||
|
export const remove = (ids) => {
|
||
|
return request({
|
||
|
url: '/api/iot-sim/simcard/remove',
|
||
|
method: 'post',
|
||
|
params: {
|
||
|
ids,
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
//修改
|
||
|
export const update = (row) => {
|
||
|
return request({
|
||
|
url: '/api/iot-sim/simcard/update',
|
||
|
method: 'post',
|
||
|
data: row
|
||
|
})
|
||
|
}
|