mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
feat(FE): add master data production standard, slicing form and index table
This commit is contained in:
@@ -64,6 +64,11 @@ import {
|
||||
Flock,
|
||||
UpdateFlockPayload,
|
||||
} from '@/types/api/master-data/flock';
|
||||
import { ProductionStandard } from '@/types/api/master-data/production-standard';
|
||||
import {
|
||||
getDummyAllFetcher,
|
||||
getDummySingleFetcher,
|
||||
} from '@/dummy/master-data/production-standard.dummy';
|
||||
|
||||
export const UomApi = new BaseApiService<
|
||||
Uom,
|
||||
@@ -141,3 +146,25 @@ export const FlockApi = new BaseApiService<
|
||||
CreateFlockPayload,
|
||||
UpdateFlockPayload
|
||||
>('/master-data/flocks');
|
||||
|
||||
export class ProductionStandardApi extends 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'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user