feat(FE-41): create kandang type

This commit is contained in:
ValdiANS
2025-10-05 13:39:25 +07:00
parent 0675d95a2a
commit 0e5b718fd7
+20
View File
@@ -0,0 +1,20 @@
import { BaseMetadata } from '@/types/api/api-general';
import { BaseLocation } from '@/types/api/master-data/location';
import { BaseUser } from '@/types/api/user';
export type BaseKandang = {
id: number;
name: string;
location: BaseLocation;
pic: BaseUser;
};
export type Kandang = BaseMetadata & BaseKandang;
export type CreateKandangPayload = {
name: string;
location_id: number;
pic_id: number;
};
export type UpdateKandangPayload = CreateKandangPayload;