mirror of
https://github.com/KwiTsukasa/kt-template-online-web.git
synced 2026-05-27 16:35:47 +08:00
15 lines
368 B
TypeScript
15 lines
368 B
TypeScript
import { get } from "./request";
|
|
|
|
export interface DictItem {
|
|
label: string;
|
|
value: string;
|
|
}
|
|
|
|
export const getComponentDictByType = (type: string) => {
|
|
return get<DictItem[]>("/dict/getComponentDictByType", { params: { type } });
|
|
};
|
|
|
|
export const getDictByKey = (dictKey: string) => {
|
|
return get<DictItem[]>("/dict/getDictByKey", { params: { dictKey } });
|
|
};
|