feat: 添加字典详情
Some checks failed
coverage CI / build (push) Has been cancelled

This commit is contained in:
2025-09-24 15:28:36 +08:00
parent 9363dc0d6e
commit 34cd919441
7 changed files with 364 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
import { request } from "@umijs/max";
export type DictDataVO = {
id: number | undefined;
id: number;
sort: number | undefined;
label: string;
value: string;
@@ -13,6 +13,11 @@ export type DictDataVO = {
createTime: Date;
};
export interface DictDataReqVO extends PageParam {
dictType?: string;
createTime?: Date;
}
// 查询字典数据(精简)列表
// export const getSimpleDictDataList = () => {
// return request.get({ url: "/system/dict-data/simple-list" });
@@ -29,7 +34,7 @@ export const getSimpleDictDataList = () => {
// return request.get({ url: "/system/dict-data/page", params });
// };
export const getDictDataPage = (params: PageParam) => {
export const getDictDataPage = (params: DictDataReqVO) => {
return request("/system/dict-data/page", {
method: "GET",
params,