รายการคำสั่ง ==> 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

@ -7,4 +7,9 @@ interface DataOption {
name: string;
}
export type { Pagination, DataOption };
interface ItemTabs {
label: string;
name: string;
}
export type { Pagination, DataOption, ItemTabs };

View file

@ -1 +1,24 @@
export type {};
interface FormQuery {
page: number;
pageSize: number;
year: number;
keyword: string;
}
interface FormCommand {
commandYear: number;
commandNo: string;
commandTypeId?: string;
}
interface FormDataDetail {
commandNo: string;
commandYear: number | null;
// commandName: string;
detailHeader: string;
detailBody: string;
detailFooter: string;
issue: string | null;
}
export type { FormQuery, FormCommand, FormDataDetail };

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 };