21 lines
584 B
TypeScript
21 lines
584 B
TypeScript
import { ComboModel } from "@/components/hTable/hTable";
|
|
import { http } from "@/utils/http";
|
|
import type { Res } from "@/utils/http/types";
|
|
|
|
/**
|
|
* @description 获取枚举下拉
|
|
* @param {string} type 枚举类型 type=StatusEnum
|
|
* @return {object}
|
|
*/
|
|
export function getenum(type) {
|
|
return http.request<Res<ComboModel[]>>("get", `Public/enum/${type}`);
|
|
}
|
|
/**
|
|
* @description 获取枚举对象
|
|
* @param {string} type 枚举类型 type=StatusEnum
|
|
* @return {object}
|
|
*/
|
|
export function getenumDic(type) {
|
|
return http.request<Res<any>>("get", `Public/enum/${type}/Dic`);
|
|
}
|