2024-04-12 06:43:55 -04:00
|
|
|
import React from "react";
|
2024-04-17 22:38:47 -04:00
|
|
|
import {Dayjs} from "dayjs";
|
2024-04-12 06:43:55 -04:00
|
|
|
|
|
|
|
export type Invoice = {
|
|
|
|
id: string;
|
|
|
|
customer_id: string;
|
|
|
|
amount: number;
|
|
|
|
date: string;
|
|
|
|
// In TypeScript, this is called a string union type.
|
|
|
|
// It means that the "status" property can only be one of the two strings: 'pending' or 'paid'.
|
|
|
|
status: 'pending' | 'paid';
|
|
|
|
};
|
|
|
|
type Status={
|
|
|
|
success:boolean;
|
|
|
|
code:number ;
|
|
|
|
message: string;
|
|
|
|
}
|
|
|
|
export type ResultPage<T> = {
|
|
|
|
content:T[];
|
|
|
|
totalPages:number;
|
|
|
|
totalElements:number;
|
|
|
|
|
|
|
|
}
|
|
|
|
export type ResponseVO<T>={
|
|
|
|
data:T;
|
|
|
|
timeStamp:number;
|
|
|
|
status:Status;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type DataType ={
|
|
|
|
key: React.ReactNode;
|
|
|
|
id: number;
|
2024-04-16 04:11:21 -04:00
|
|
|
pid:number;
|
|
|
|
pPid:number;
|
2024-04-12 06:43:55 -04:00
|
|
|
code: string;
|
|
|
|
name: string;
|
|
|
|
description: string;
|
2024-04-16 04:11:21 -04:00
|
|
|
state: number|string|undefined;
|
|
|
|
priority: number|string|undefined;
|
2024-04-12 06:43:55 -04:00
|
|
|
type:number;
|
|
|
|
action?:React.ReactNode;
|
2024-04-23 01:19:26 -04:00
|
|
|
expectedStartTime?:Date|string;
|
2024-04-16 04:11:21 -04:00
|
|
|
expectedEndTime?:Date;
|
2024-05-08 02:15:59 -04:00
|
|
|
expectedTimeRange?:(string|Dayjs|undefined)[];
|
2024-04-16 04:11:21 -04:00
|
|
|
actualStartTime?:Date;
|
|
|
|
actualEndTime?:Date;
|
2024-05-29 04:44:23 -04:00
|
|
|
actualTimeRange?:(string|Dayjs|undefined)[]
|
2024-04-16 04:11:21 -04:00
|
|
|
children: DataType[]|undefined;
|
|
|
|
}
|
|
|
|
export type DictType={
|
|
|
|
id:number;
|
|
|
|
code:string
|
|
|
|
name:string;
|
|
|
|
order:number;
|
|
|
|
color:string;
|
2024-04-12 06:43:55 -04:00
|
|
|
}
|
2024-05-29 04:44:23 -04:00
|
|
|
export type SearchObject={
|
|
|
|
name: string,
|
|
|
|
value: any,
|
|
|
|
operateType:string,
|
|
|
|
}
|