import { httpGET, httpPOST } from './common/httpFetch' /** * 系统字典集合添加 * @description 系统字典集合添加 * @param { string } orgId 学校id或登录人orgId * @param { string } parentId 父级ID * @param { string } value value值字典值 * @param { string } lable lable值字典名称 * @param { string } type 字典类型 * @param { string } module 字典所属模块 * @param { string } sort 字典排序值 * @param { string } scope 系统级还是用户级 * @param { string } description 字典描述信息 */ export const SysDictsSave = body => { return httpPOST('data/api-u/dict/SysDicts/save', { body }) } /** * 查询系统字典集合 * @description 查询系统字典集合 * @param { string } orgId 学校id或登录人orgId * @param { string } type 字典类型 * @param { string } module 字典所属模块 * @param { string } start 起始页 * @param { string } length 长度 * @param { string } name 字典名称模糊查询 */ export const getSysDicts = body => { return httpGET('data/api-u/dict/getSysDicts', { body }) } /** * 系统字典删除 * @description 系统字典删除 * @param { string } id 字典id */ export const sysDictsDel = body => { return httpGET('data/api-u/dict/SysDicts/delete', { body }) } /** * 系统字典修改回显 * @description 系统字典修改回显 * @param { string } id 字典id */ export const sysDictsFindSysById = body => { return httpGET('data/api-u/dict/SysDicts/findSysById', { body }) } /** * 系统字典修改 * @description 系统字典修改 * @param { string } id 字典id */ export const sysDictsUpdate = body => { return httpGET('data/api-u/dict/SysDicts/update', { body }) } /** * 查询全局字典集合 * @description 查询全局字典集合 * @param { string } type 类型:SYS_TYPE,模块:MODULE */ export const getGloDicts = body => { return httpGET('data/api-u/glo/getGloDicts', { body }) }