Learn.VideoAnalysis/VideoAnalysis/WebUI/src/api/enum.ts

21 lines
582 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<ComboModel[]>("get", `api/Public/enum/${type}`);
}
/**
* @description 获取枚举对象
* @param {string} type 枚举类型 type=StatusEnum
* @return {object}
*/
export function getenumDic(type) {
return http.request<any>("get", `api/Public/enum/${type}/Dic`);
}