迁移监控设置功能

This commit is contained in:
sheng
2026-06-22 23:00:27 +08:00
parent 7cf7caf31f
commit 964cf0b6ad
6 changed files with 340 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
import { request } from '@/api/_service'
const BASE = 'system_settings/system_monitor/setting/'
function apiParams (method, data = {}) {
return {
method: `system_settings_system_monitoring_setting_${method}`,
platform: 'background',
...data
}
}
export function getMonitoringConfigurationList (data) {
return request({
url: BASE + 'list',
method: 'get',
params: apiParams('list', data)
})
}
export function createMonitoringConfiguration (data) {
return request({
url: BASE + 'create',
method: 'post',
data: apiParams('create', data)
})
}
export function editMonitoringConfiguration (data) {
return request({
url: BASE + 'edit',
method: 'post',
data: apiParams('edit', data)
})
}
export function deleteMonitoringConfiguration (data) {
return request({
url: BASE + 'delete',
method: 'post',
data: apiParams('delete', data)
})
}