mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
24 lines
434 B
JavaScript
24 lines
434 B
JavaScript
import request from '@/utils/request'
|
|
|
|
export function getCanalConfig(clusterId, serverId) {
|
|
return request({
|
|
url: '/canal/config/' + clusterId + '/' + serverId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function updateCanalConfig(data) {
|
|
return request({
|
|
url: '/canal/config',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getTemplateConfig() {
|
|
return request({
|
|
url: '/canal/config/template',
|
|
method: 'get'
|
|
})
|
|
}
|