ต่อ api

This commit is contained in:
setthawutttty 2023-11-23 10:13:13 +07:00
parent 14c232d589
commit e6d81b55da
9 changed files with 249 additions and 141 deletions

View file

@ -1,6 +1,5 @@
interface FormData {
respondentType: string
office: string
consideredAgency: string
title: string
description: string
@ -13,21 +12,22 @@ interface FormData {
appellant: string
documentFile: any | null
complaintStatus: string
persons: ArrayPerson[]
personId: any
persons: object|null
organizationId:string|null
respondentId:any
fileList:ArrayFileList[]
fileList:object|null
}
interface ArrayPerson {
idcard: string,
name: string,
positionNo: string,
position: string,
positionLevel: string,
salary: string,
organization: string,
personId: string,//id อ้างอิง profile
idcard: string,//รหัสบัตรประชาชน
prefix: string,//คำนำหน้า
firstName: string,//ชื่อ
lastName: string,//นามสกุล
posNo: string,//เลขที่ตำแหน่ง
position: string,//ตำแหน่ง
positionLevel: string,//ระดับ
salary: number,//เงินเดือน
organization: string,//สังกัด
}
interface ArrayFileList {
id:string
@ -37,7 +37,7 @@ interface ArrayFileList {
}
interface MyObjectComplaintsRef {
respondentType: object | null;
office: object | null;
organizationId: object | null;
consideredAgency: object | null;
title: object | null;
description: object | null;

View file

@ -2,12 +2,12 @@ interface DataListRow {
id:string
title: string
description: string
respondent: string
descMistake: string
appellant: string
offenseDetails: string
createdAt: string
devLevel: string
considerationDate: string
complaintStatus: string
levelConsideration: string
dateConsideration: string
status: string
}
interface DataAdd {
id:string
@ -33,19 +33,23 @@ interface DataList {
id:string
title: string
description: string
respondent: string
descMistake: string
appellant: string
offenseDetails: string
createdAt: Date
devLevel: string
considerationDate: Date
complaintStatus: string
levelConsideration: string
dateConsideration: Date
status: string
}
interface ocListType{
organizationId:string
organizationName:string
}
export type {
DataList,
DataListRow,
DataAdd,
DataAddResponse
DataAddResponse,
ocListType
}