|
|
@ -46,18 +46,17 @@ export const getAllEnum = async ({ |
|
|
|
api = `${BASE_URL}/operation/enum/getAllEnum`, |
|
|
|
params = {}, |
|
|
|
}: dictHttpConfig) => { |
|
|
|
const res = await http.post(api, params); |
|
|
|
const res = await http.get(api, params); |
|
|
|
return Promise.resolve(res); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 获取单个枚举(需传参,参数 enumType) |
|
|
|
* 获取单个枚举(需传参,参数 enumType) |
|
|
|
*/ |
|
|
|
export const getEnum = async ({ |
|
|
|
api = `${BASE_URL}/operation/enum/getEnum`, |
|
|
|
params = {}, |
|
|
|
}: dictHttpConfig) => { |
|
|
|
const res = await http.post(api, params); |
|
|
|
const res = await http.get(api, params); |
|
|
|
return Promise.resolve(res); |
|
|
|
}; |
|
|
|
}; |
|
|
|