From a04a21ffeba32dc1fa65874a04c5559abbb1ed8f Mon Sep 17 00:00:00 2001 From: leedj312 Date: Mon, 14 Jul 2025 14:43:26 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=AC=EC=9D=B4=EC=9A=A9=EC=8B=9C=EC=84=A4?= =?UTF-8?q?=20=EB=93=B1=EB=A1=9D=20=EB=B9=8C=EB=93=9C=20=EC=9E=91=EC=97=85?= =?UTF-8?q?=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx | 9 ++++----- apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx | 7 +------ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx index f34353add..00c965273 100644 --- a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx +++ b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx @@ -243,7 +243,7 @@ export const pubFacActionsExport: (set: any) => pubFacActions = (set: any) => { },pbnstRuseFcltUpdate : async(ruseRes:customPbnst[])=>{ try { - const response = await putFectch( + await putFectch( `/reuseFc/pubFc`, ruseRes ); @@ -254,7 +254,7 @@ export const pubFacActionsExport: (set: any) => pubFacActions = (set: any) => { } ,pbnstRuseBizUpdate : async(ruseRes:fcBizType[])=>{ try { - const response = await putFectch( + await putFectch( `/reuseFc/pubFcBiz`, ruseRes ); @@ -303,7 +303,7 @@ export const pubFacActionsExport: (set: any) => pubFacActions = (set: any) => { }, fileDownLoad: async (atflCd: string) => { try { - const response = await getFetch( + await getFetch( fetchType.CS, `/attach-service/api/v1/atflcd/download/${atflCd}` ); @@ -328,10 +328,9 @@ export const pubFacActionsExport: (set: any) => pubFacActions = (set: any) => { console.log(e); } },getFcOrgwts : async (fcltPkList: string[] ,size:number) => { - let url = `/prcsFclt/ruseInfo/1/${size}/A/0/0/1/SW`; const fcOrgwtsNmList = await postFectch( - url, + `/prcsFclt/ruseInfo/1/${size}/A/0/0/1/SW`, fcltPkList, fetchType.COMMON ); diff --git a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx index a08c5301a..8f65c68c8 100644 --- a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx +++ b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx @@ -1,5 +1,4 @@ import { z } from "zod"; -import { TEST_UUID } from "../rainReg"; export type customPbnst = z.infer; @@ -60,7 +59,7 @@ export type PbnstDemandComType = { // dmdInfoFk:string|'' }; -const pubHasuZod = z.object({ +export const pubHasuZod = z.object({ choose: z.boolean().default(false), bscFctCd: z.string(), sido: z.string().default(""), @@ -82,10 +81,6 @@ const zNum = z.preprocess( (v) => (v !== null && v !== undefined ? Number(v) : v), z.number() ); -const zNumGte = z.preprocess( - (v) => (v !== null && v !== undefined ? Number(v) : v), - z.number().gt(0, { message: "0보다 큰 숫자만 가능합니다" }) -); const zNumNullish = zNum.nullish(); const zNumDefaultZero = zNum.default(0).nullish();