fix: แก้ type Service
This commit is contained in:
parent
4f8f3d3fa3
commit
fe95db7983
1 changed files with 7 additions and 14 deletions
|
|
@ -12,27 +12,16 @@ export interface Service {
|
||||||
name: string;
|
name: string;
|
||||||
code: string;
|
code: string;
|
||||||
id: string;
|
id: string;
|
||||||
workOnService: WorkOnService[];
|
work: Work[];
|
||||||
imageUrl: string;
|
imageUrl: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WorkOnService {
|
|
||||||
work: Work;
|
|
||||||
productId: string;
|
|
||||||
updatedAt: string;
|
|
||||||
updateBy: string;
|
|
||||||
createdAt: string;
|
|
||||||
createdBy: string;
|
|
||||||
serviceId: string;
|
|
||||||
workId: string;
|
|
||||||
order: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Work {
|
export interface Work {
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updateBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
|
serviceId: string;
|
||||||
status: string;
|
status: string;
|
||||||
attributes: string;
|
attributes: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|
@ -40,7 +29,11 @@ export interface Work {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceCreate {
|
export interface ServiceCreate {
|
||||||
workId: string[];
|
work: {
|
||||||
|
attributes: Attributes;
|
||||||
|
productId: string[];
|
||||||
|
name: string;
|
||||||
|
}[];
|
||||||
attributes: Attributes;
|
attributes: Attributes;
|
||||||
detail: string;
|
detail: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue