mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-41): create Location type
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user