feat: add type for create and edit
This commit is contained in:
parent
20d9598a4e
commit
a90400b348
1 changed files with 61 additions and 0 deletions
|
|
@ -28,6 +28,67 @@ const MINIO_BUCKET = process.env.MINIO_BUCKET;
|
||||||
function imageLocation(id: string) {
|
function imageLocation(id: string) {
|
||||||
return `employee/profile-img-${id}`;
|
return `employee/profile-img-${id}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type CustomerBranchCreate = {
|
||||||
|
customerId: string;
|
||||||
|
|
||||||
|
code: string;
|
||||||
|
status?: Status;
|
||||||
|
|
||||||
|
branchNo: string;
|
||||||
|
legalPersonNo: string;
|
||||||
|
|
||||||
|
taxNo: string;
|
||||||
|
name: string;
|
||||||
|
nameEN: string;
|
||||||
|
addressEN: string;
|
||||||
|
address: string;
|
||||||
|
zipCode: string;
|
||||||
|
email: string;
|
||||||
|
telephoneNo: string;
|
||||||
|
longitude: string;
|
||||||
|
latitude: string;
|
||||||
|
|
||||||
|
registerName: string;
|
||||||
|
registerDate: Date;
|
||||||
|
authorizedCapital: string;
|
||||||
|
|
||||||
|
subDistrictId?: string | null;
|
||||||
|
districtId?: string | null;
|
||||||
|
provinceId?: string | null;
|
||||||
|
headOfficeId?: string | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
type CustomerBranchUpdate = {
|
||||||
|
customerId?: string;
|
||||||
|
|
||||||
|
code?: string;
|
||||||
|
status?: "ACTIVE" | "INACTIVE";
|
||||||
|
|
||||||
|
branchNo?: string;
|
||||||
|
legalPersonNo?: string;
|
||||||
|
|
||||||
|
taxNo?: string;
|
||||||
|
name?: string;
|
||||||
|
nameEN?: string;
|
||||||
|
addressEN?: string;
|
||||||
|
address?: string;
|
||||||
|
zipCode?: string;
|
||||||
|
email?: string;
|
||||||
|
telephoneNo?: string;
|
||||||
|
longitude?: string;
|
||||||
|
latitude?: string;
|
||||||
|
|
||||||
|
registerName?: string;
|
||||||
|
registerDate?: Date;
|
||||||
|
authorizedCapital?: string;
|
||||||
|
|
||||||
|
subDistrictId?: string | null;
|
||||||
|
districtId?: string | null;
|
||||||
|
provinceId?: string | null;
|
||||||
|
headOfficeId?: string | null;
|
||||||
|
};
|
||||||
|
|
||||||
@Route("api/customer-branch")
|
@Route("api/customer-branch")
|
||||||
@Tags("Customer Branch")
|
@Tags("Customer Branch")
|
||||||
@Security("keycloak")
|
@Security("keycloak")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue