feat(FE): api integration production standards

This commit is contained in:
randy-ar
2025-12-27 13:46:19 +07:00
parent 663c1dea14
commit d49bca1d40
8 changed files with 1167 additions and 581 deletions
+2 -18
View File
@@ -147,24 +147,8 @@ export const FlockApi = new BaseApiService<
UpdateFlockPayload
>('/master-data/flocks');
export class ProductionStandardApi extends BaseApiService<
export const ProductionStandardApi = new BaseApiService<
ProductionStandard,
unknown,
unknown
> {
constructor(basePath: string) {
super(basePath);
}
async getAllFetcher() {
return await getDummyAllFetcher();
}
async getSingleFetcher(id: number) {
return await getDummySingleFetcher(id);
}
}
export const productionStandardApi = new ProductionStandardApi(
'/master-data/production-standard'
);
>('/master-data/production-standards');