import request from '@/utils/request'

// ��ѯ����ģ���б�
export function listTemplate(query) {
  return request({
    url: '/monitor/tenantJob/template/list',
    method: 'get',
    params: query
  })
}

// ��ѯ����ģ����ϸ
export function getTemplate(templateId) {
  return request({
    url: '/monitor/tenantJob/template/' + templateId,
    method: 'get'
  })
}

// ��������ģ��
export function addTemplate(data) {
  return request({
    url: '/monitor/tenantJob/template',
    method: 'post',
    data: data
  })
}

// �޸�����ģ��
export function updateTemplate(data) {
  return request({
    url: '/monitor/tenantJob/template',
    method: 'put',
    data: data
  })
}

// ɾ������ģ��
export function delTemplate(templateIds) {
  return request({
    url: '/monitor/tenantJob/template/' + templateIds,
    method: 'delete'
  })
}
