mirror of
https://github.com/veops/cmdb.git
synced 2025-09-19 19:39:17 +08:00
* fix:add package * fix:notice_info为null的情况 * fix:2 bugs * feat:1.common增加通知配置 2.cmdb预定义值webhook&其他模型 * fix:json 不支持预定义值 * fix:json 不支持预定义值
41 lines
922 B
JavaScript
41 lines
922 B
JavaScript
import { axios } from '@/utils/request'
|
|
|
|
export function sendTestEmail(receive_address, data) {
|
|
return axios({
|
|
url: `/common-setting/v1/notice_config/send_test_email?receive_address=${receive_address}`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export const getNoticeConfigByPlatform = (platform) => {
|
|
return axios({
|
|
url: '/common-setting/v1/notice_config',
|
|
method: 'get',
|
|
params: { ...platform },
|
|
})
|
|
}
|
|
|
|
export const postNoticeConfigByPlatform = (data) => {
|
|
return axios({
|
|
url: '/common-setting/v1/notice_config',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export const putNoticeConfigByPlatform = (id, info) => {
|
|
return axios({
|
|
url: `/common-setting/v1/notice_config/${id}`,
|
|
method: 'put',
|
|
data: info
|
|
})
|
|
}
|
|
|
|
export const getNoticeConfigAppBot = () => {
|
|
return axios({
|
|
url: `/common-setting/v1/notice_config/app_bot`,
|
|
method: 'get',
|
|
})
|
|
}
|