system: uniapp增加字典数据查询接口

pull/1/head
owen 2023-09-22 15:11:03 +08:00
parent a2f0aa31fd
commit a91b09a5fc
2 changed files with 18 additions and 0 deletions

6
api/system/dict.js Normal file
View File

@ -0,0 +1,6 @@
import request from "@/utils/request.js";
// 根据字典类型查询字典数据信息
export function getDicts(dictType) {
return request.get('app-api/system/dict-data/type/' + dictType);
}

12
utils/dict.js Normal file
View File

@ -0,0 +1,12 @@
/**
* Created by 芋道源码
*
* 数据字典工具类
*/
export const DICT_TYPE = {
// ========== MALL - 交易模块 ==========
BROKERAGE_BANK_NAME: 'brokerage_bank_name', // 佣金提现银行
}