index.ts
304 Bytes
import { defHttp } from "@/utils/external/http/axios";
import { DictItem } from "./model";
enum Api {
GET_DICT = '/dict_item'
}
export const getDictItemByCode = (value: string) => {
return defHttp.post<DictItem[]>({
url: `${Api.GET_DICT}/find`,
params: {
dictCode: value
}
})
}