Files
pqs-9100_client/frontend/src/api/interface/index.ts
2024-11-05 11:23:38 +08:00

58 lines
869 B
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 { storeToRefs } from 'pinia';
/**
* 该接口声明文件用来声明通用的接口定义,比如 请求参数Base、响应Base、分页等
*/
/**
* 请求响应参数不包含data
*/
export interface Result {
code: string;
message: string;
}
/**
* 请求响应参数包含data
*/
export interface ResultData<T = any> extends Result {
data: T;
}
/**
* 分页请求参数
*/
export interface ReqPage {
pageNum: number;
pageSize: number;
}
/**
* 分页响应参数
*/
export interface ResPage<T> {
records: T[];
current: number;
size: number;
total: number;
}
/**
* Dict 字典属性
* id: 唯一标识
* label: 名称
* code: 类型下唯一标识
*/
export interface Dict {
id: string;
name: string;
code: string;
value?: string;
sort?:number;
algoDescribe?: string;
children?: Dict[];
}