Selaa lähdekoodia

【新增接口】新增系统字典查询接口
通过字典类型查询字典数据

Signed-off-by: heyho <heywsk@qq.com>

heyho 11 kuukautta sitten
vanhempi
sitoutus
ed3d370de2
1 muutettua tiedostoa jossa 16 lisäystä ja 0 poistoa
  1. 16 0
      sheep/api/system/dict.js

+ 16 - 0
sheep/api/system/dict.js

@@ -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;