feat(FE-41): create Location type

This commit is contained in:
ValdiANS
2025-10-04 14:57:17 +07:00
parent 5b1dab2860
commit d3977a0951
+19
View File
@@ -0,0 +1,19 @@
import { BaseMetadata } from '@/types/api/api-general';
import { BaseArea } from '@/types/api/master-data/area';
export type BaseLocation = {
id: number;
name: string;
address: string;
area: BaseArea;
};
export type Location = BaseMetadata & BaseLocation;
export type CreateLocationPayload = {
name: string;
address: string;
area_id: number;
};
export type UpdateLocationPayload = CreateLocationPayload;