import request from '@u/request' // 获取字典类型 export const getDictTypeList = (data:object) => { return request({ url: '/api/pubDict/getDictTypeList', method: 'get', data: data }) } // 根据字典类型获取字典内容 export const getListByTypeCode = (data:object) => { return request({ url: '/api/pubDict/getListByTypeCode', method: 'get', data: data }) } // 根据多个字典类型获取字典列表 export const getListByTypeCodeList = ({ typeCodeList, state }:{typeCodeList:string}) => { const data = { typeCodeList } return request({ url: 'api/pubDict/getListByTypeCodeList', method: 'get', data: data }) } // 新增保存或编辑保存 export const savePubDict = (data:object) => { return request({ url: '/api/pubDict/save', method: 'post', data: data }) } // 根据id删除 export const deleteById = ({ id }:{id:number}) => { const data = { id } return request({ url: '/api/pubDict/deleteById', method: 'post', data: data }) }