【新增接口】新增系统字典查询接口

通过字典类型查询字典数据

Signed-off-by: heyho <heywsk@qq.com>
pull/92/head
heyho 2024-09-04 09:14:33 +00:00 committed by Gitee
parent 7268659193
commit ed3d370de2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 16 additions and 0 deletions

16
sheep/api/system/dict.js Normal file
View File

@ -0,0 +1,16 @@
import request from '@/sheep/request';
const DictApi = {
// 根据字典类型查询字典数据信息
getDictDataListByType: (type) => {
return request({
url: `/system/dict-data/type`,
method: 'GET',
params: {
type,
},
});
},
};
export default DictApi;