111 lines
2.8 KiB
JavaScript
111 lines
2.8 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// ---------- 基础参数设置 ------------------
|
|
|
|
// 查询基础参数列表
|
|
export function getSettingListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_setting/list',
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 编辑基础参数
|
|
export function batchEditSettingApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_setting/batchEdit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 重置基础参数
|
|
export function batchResetSettingApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_setting/batchToDefault',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 传感器参数metric-查询
|
|
export function getMetricSettingListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_device_sensor_metric/list',
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 编辑-传感器参数metric
|
|
export function batchEditMetricSettingApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_device_sensor_metric/batchEdit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 重置-传感器参数metric
|
|
export function batchResetMetricSettingApi(idStr) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_device_sensor_metric/rollback/'+idStr,
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
// 摄像头参数列表-查询
|
|
export function getCameraSettingListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_camera_setting/list',
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 修改摄像头参数设置(批量)
|
|
export function batchEditCameraSettingApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_camera_setting/batchEdit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改摄像头参数设置 (批量) (回滚)
|
|
export function batchResetCameraSettingApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_camera_setting/batchToDefault',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|