Files
pqs-9100_client/frontend/src/api/interface/index.ts

59 lines
1003 B
TypeScript
Raw Normal View History

2024-11-05 11:23:38 +08:00
import { storeToRefs } from 'pinia';
/**
* BaseBase
*/
/**
* data
*/
2024-08-22 11:27:06 +08:00
export interface Result {
code: string;
message: string;
}
/**
* data
*/
2024-08-22 11:27:06 +08:00
export interface ResultData<T = any> extends Result {
2025-07-21 13:47:56 +08:00
map(arg0: (item: any) => { label: any; value: any; }): { label: string; value: string; }[] | { label: string; value: string; }[];
2024-08-22 11:27:06 +08:00
data: T;
}
/**
*
*/
export interface ReqPage {
pageNum?: number;
pageSize?: number;
2024-08-22 11:27:06 +08:00
}
/**
*
*/
export interface ResPage<T> {
2024-10-31 14:53:29 +08:00
records: T[];
current: number;
size: number;
total: number;
2024-08-22 11:27:06 +08:00
}
/**
* Dict
* id: 唯一标识
* label: 名称
* code: 类型下唯一标识
*/
export interface Dict {
id: string;
2024-11-05 11:23:38 +08:00
name: string;
code: string;
2024-11-05 11:23:38 +08:00
value?: string;
sort?:number;
algoDescribe?: string;
children?: Dict[];
2024-08-22 11:27:06 +08:00
}