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

74 lines
1.9 KiB
JavaScript
Raw Normal View History

2025-06-16 18:16:22 +08:00
import request from '@/utils/request'
// ---------- 基础参数设置 ------------------
// 查询基础参数列表
export function getSettingListApi(data) {
return request({
url: '/smart-canteen/basic_setting/list',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params: data
})
}
// 编辑基础参数
export function batchEditSettingApi(data) {
return request({
url: '/smart-canteen/basic_setting/batchEdit',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-06-19 10:40:59 +08:00
// 重置基础参数
2025-06-16 18:16:22 +08:00
export function batchResetSettingApi(data) {
return request({
url: '/smart-canteen/basic_setting/batchToDefault',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
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: {
"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",
}
})
2025-06-16 18:16:22 +08:00
}