From fe95db7983f644983c0b44c1ecc3f69ba20d7ffb Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:20:08 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20type=20Ser?= =?UTF-8?q?vice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/product-service/types.ts | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index f34f143e..f0dba81f 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -12,27 +12,16 @@ export interface Service { name: string; code: string; id: string; - workOnService: WorkOnService[]; + work: Work[]; 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 { updatedAt: string; updateBy: string; createdAt: string; createdBy: string; + serviceId: string; status: string; attributes: string; name: string; @@ -40,7 +29,11 @@ export interface Work { } export interface ServiceCreate { - workId: string[]; + work: { + attributes: Attributes; + productId: string[]; + name: string; + }[]; attributes: Attributes; detail: string; name: string;