bonus-ui/src/api/kitchen/setting.js

111 lines
2.8 KiB
JavaScript
Raw Normal View History

2025-06-16 18:16:22 +08:00
import request from '@/utils/request'
// ---------- 基础参数设置 ------------------
// 查询基础参数列表
2025-06-16 18:16:22 +08:00
export function getSettingListApi(data) {
return request({
2025-06-20 09:27:43 +08:00
url: '/smart-canteen/kitchen_setting/list',
2025-06-16 18:16:22 +08:00
method: 'get',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-06-16 18:16:22 +08:00
},
params: data
})
}
// 编辑基础参数
export function batchEditSettingApi(data) {
return request({
2025-06-20 09:27:43 +08:00
url: '/smart-canteen/kitchen_setting/batchEdit',
2025-06-16 18:16:22 +08:00
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-06-16 18:16:22 +08:00
},
data: data
})
2025-06-20 09:27:43 +08:00
}
2025-06-16 18:16:22 +08:00
2025-06-19 10:40:59 +08:00
// 重置基础参数
2025-06-16 18:16:22 +08:00
export function batchResetSettingApi(data) {
return request({
2025-06-20 09:27:43 +08:00
url: '/smart-canteen/kitchen_setting/batchToDefault',
2025-06-16 18:16:22 +08:00
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-06-16 18:16:22 +08:00
},
data: data
})
2025-06-20 09:27:43 +08:00
}
2025-06-19 10:40:59 +08:00
// 传感器参数metric-查询
export function getMetricSettingListApi(data) {
return request({
url: '/smart-canteen/kitchen_device_sensor_metric/list',
method: 'get',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-06-19 10:40:59 +08:00
},
params: data
})
}
2025-06-20 09:27:43 +08:00
2025-06-19 10:40:59 +08:00
// 编辑-传感器参数metric
export function batchEditMetricSettingApi(data) {
return request({
url: '/smart-canteen/kitchen_device_sensor_metric/batchEdit',
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-06-19 10:40:59 +08:00
},
data: data
})
2025-06-20 09:27:43 +08:00
}
2025-06-19 10:40:59 +08:00
// 重置-传感器参数metric
2025-06-19 10:40:59 +08:00
export function batchResetMetricSettingApi(idStr) {
return request({
url: '/smart-canteen/kitchen_device_sensor_metric/rollback/'+idStr,
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-06-19 10:40:59 +08:00
}
})
2025-06-20 09:27:43 +08:00
}
// 摄像头参数列表-查询
export function getCameraSettingListApi(data) {
return request({
url: '/smart-canteen/kitchen_camera_setting/list',
method: 'get',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
},
params: data
})
}
// 修改摄像头参数设置(批量)
export function batchEditCameraSettingApi(data) {
return request({
url: '/smart-canteen/kitchen_camera_setting/batchEdit',
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 修改摄像头参数设置 (批量) (回滚)
export function batchResetCameraSettingApi(data) {
return request({
url: '/smart-canteen/kitchen_camera_setting/batchToDefault',
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
},
data: data
})
}