รายการคำสั่ง ==> API

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-12 17:11:00 +07:00
parent 71be6d095f
commit 15b33b147a
14 changed files with 568 additions and 145 deletions

View file

@ -1,4 +1,25 @@
interface ResListCommand {
data: {
result: {
data: DataListCommand[];
total: number;
};
};
}
interface DataListCommand {
assignFullName: string;
commandAffectDate: null | Date | string;
commandExcecuteDate: null | Date | string;
commandNo: string;
commandYear: number;
createdFullName: string;
id: string;
status: string;
issue?: string;
}
interface DataCommandType {
category: string;
commandCode: string;
createdAt: string | Date;
@ -11,4 +32,4 @@ interface DataListCommand {
name: string;
}
export type { DataListCommand };
export type { ResListCommand, DataListCommand, DataCommandType };