mirror of
https://github.com/veops/cmdb.git
synced 2025-08-26 04:00:11 +08:00
feat(ui): add bool and reference type
This commit is contained in:
18
cmdb-ui/src/api/cmdb.js
Normal file
18
cmdb-ui/src/api/cmdb.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { axios } from '@/utils/request'
|
||||
|
||||
export function searchCI(params, isShowMessage = true) {
|
||||
return axios({
|
||||
url: `/v0.1/ci/s`,
|
||||
method: 'GET',
|
||||
params: params,
|
||||
isShowMessage
|
||||
})
|
||||
}
|
||||
|
||||
export function getCIType(CITypeName, parameter) {
|
||||
return axios({
|
||||
url: `/v0.1/ci_types/${CITypeName}`,
|
||||
method: 'GET',
|
||||
params: parameter
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user