/** * 字典数据接口 */ import { request } from '../../utils/request' /** * 根据字典类型查询字典数据信息 * @param dictType 字典类型 */ export const getDictDataByType = (dictType: string): Promise => { return request({ url: `/system/dict/data/type/${dictType}`, method: 'GET' }) } // /** // * 根据字典类型查询字典数据信息(返回AjaxResult格式) // * @param dictType 字典类型 // */ // export const getDictDataByTypeAjax = (dictType: string): Promise => { // return request({ // url: `/system/dict/data/type/${dictType}`, // method: 'GET' // }) as Promise // } // /** // * 根据字典类型查询字典数据列表 // * @param dictType 字典类型 // */ // export const getDictDataList = (dictType: string): Promise => { // return request({ // url: `/system/dict/data/type/${dictType}`, // method: 'GET' // }) as Promise // }