import request from "@/utils/request";

//查询所有模板
export function getList(data) {
    return request({
        url: "/system-boot/EventTemplate/getList",
        method: "post",
        data,
    });
}
//字典树
export function getDictTree(data) {
    return request({
        url: "/system-boot/reportDict/DictTree",
        method: "post",
        params:data
    });
}
//新增模板
export function add(data) {
    return request({
        url: "/system-boot/EventTemplate/add",
        method: "post",
        data,
    });
}
//修改模板
export function update(data) {
    return request({
        url: "/system-boot/EventTemplate/update",
        method: "post",
        data,
    });
}
//删除模板
export function deleteData(data) {
    return request({
        url: "/system-boot/EventTemplate/delete",
        method: "post",
        data,
    });
}