import request from '@/utils/request' import { parseStrEmpty } from "@/utils/ruoyi";//处理字符串,und,null转换为''; // 修改宣教分类 export function amendtag(data) { return request({ url: '/smartor/hecategory', method: 'put', data: data }) }; // 新增宣教分类 export function addapitag(data) { return request({ url: '/smartor/hecategory', method: 'post', data: data }) }; /** * * @param {标签id} userId * 获取宣教详情 * @returns */ export function detailstag(userId) { return request({ url: '/smartor/hecategory/'+ userId, method: 'get', }) }; /** * * @param {标签id} userId * 删除标签 * @returns */ export function deletetag(userId) { return request({ url: '/smartor/hecategory/' + userId, method: 'delete', }) }; // 导出标签列表 export function exporttag(data) { return request({ url: '/smartor/hecategory/export', method: 'post', data: data }) }; // 查询标签列表 export function listtag(query) { return request({ url: '/smartor/hecategory/list', method: 'get', params: query }) };