wms_client_kate_suzhou/src/api/config.js

39 lines
758 B
JavaScript
Raw Normal View History

2024-07-02 08:16:55 +08:00
import request from "@/http/request";
const getConfigs = () => {
return request.get('/config/getConfigs')
}
const updateConfig = (params) => {
return request.post('/config/updateConfig', params)
}
2024-08-02 23:10:15 +08:00
const getConfigsByPage = (params) => {
return request.post('/config/getConfigsByPage', params)
}
2024-07-19 13:46:52 +08:00
const restartSystem = (params) => {
return request({
url: '/system/restartSystem',
method: 'post',
data: params,
2024-08-02 23:10:15 +08:00
timeout: 10000
2024-07-19 13:46:52 +08:00
})
2024-07-02 08:16:55 +08:00
}
2024-07-19 13:46:52 +08:00
const reloadConfig = (params) => {
return request({
url: '/system/reloadConfig',
method: 'post',
data: params,
2024-08-02 23:10:15 +08:00
timeout: 10000
2024-07-19 13:46:52 +08:00
})
2024-07-02 08:16:55 +08:00
}
export {
getConfigs,
2024-08-02 23:10:15 +08:00
getConfigsByPage,
2024-07-02 08:16:55 +08:00
updateConfig,
2024-07-19 13:46:52 +08:00
restartSystem,
reloadConfig
2024-07-02 08:16:55 +08:00
}