cmc-web/packages/api/system/system.js

25 lines
624 B
JavaScript
Raw Normal View History

2024-08-20 12:11:31 +00:00
/**
* Created by HaijunZhang on 2019/7/23.
*/
import { request } from '@cmp/cmp-element'
import { wrapperParams } from 'utils'
const baseUrl = '/sms/v1/systems'
export function getSystems(params) {
return request.get(baseUrl, {
params
})
}
export function getSystemsDetail(id) {
return request.get(`${baseUrl}/${id}`)
}
export function createSystems(params) {
return request.post(baseUrl, wrapperParams(params))
}
export function modifySystems(params) {
return request.put(`${baseUrl}/${params.id}`, wrapperParams(params))
}
export function removeSystems(id) {
return request.delete(`${baseUrl}/${id}`)
}