/* * @Author: zyk * @Date: 2020-07-13 15:13:17 * @Last Modified by: zyk * @Last Modified time: 2020-12-15 15:34:34 */ import request from '@/utils/request' // 数据字典和基础数据查询的相关接口 /** * 数据字典多类型编码查询接口 * type参数 类型 String * type参数 格式 'type' */ export function getDictList(type) { return request({ url: `/business/gaeaDict/select/${type}`, method: 'get', }) } export function getDictCodes(project) { return request({ url: `/business/gaeaDict/selectAll/${project}`, method: 'get', }) } /** * 数据字典多类型编码查询接口 * typeList参数 类型 Array * typeList参数 格式 ['type1','type2',...] */ export function getMultipleDictList(typeList) { const types = typeList + '' return request({ url: `/v1/dict/types`, method: 'get', params: { types }, }) } /** * 主数据编码查询接口 * typeList参数 类型 Array * typeList参数 格式 ['type1','type2',...] */ export function getBaseDataList(typeList) { const types = typeList + '' return request({ url: `/v1/master/types`, method: 'get', params: { types }, }) }