Files
my-spring/web-vue/packages/core/api/model/baseModel.ts
2026-03-19 10:57:24 +08:00

57 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { Result } from '@jeesite/types/axios';
/**
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
export interface Page<T> {
pageNo: number;
pageSize: number;
orderBy: string;
count: number;
list: T[];
}
export interface BasicModel<T> extends Result, Recordable {
id: string;
page: Page<T>;
isNewRecord: boolean;
dataMap: Map<string, any>;
createBy?: string;
createDate?: string;
updateBy?: string;
updateDate?: string;
status?: string;
}
export interface TreeModel<T> extends BasicModel<T> {
parentCode?: string; // 父级编码
parentCodes?: string; // 所有父级编号
treeNames?: string; // 全节点名
treeSort?: string; // 排序号
treeSorts?: string; // 所有排序号
treeLeaf?: string; // 是否叶子节点
treeLevel?: number; // 树层次级别从0开始
childList?: T[]; // 子项列表
isRoot?: boolean; // 是否根节点
isTreeLeaf?: boolean; // 是否叶子
isLoading?: boolean; // 是否加载中
}
export interface TreeDataModel {
id: string;
pId: string;
name: string;
value?: string;
title?: string;
}