import type { PageableList, PageableParams } from "@/shared/model"; import { z } from "zod"; export interface MenuModificationDemandParams extends PageableParams { menuCd?: number; siteId?: string; mdfcnDmndSttusCd?: string; } export interface MenuModificationDemand { mdfcnRcptNo: number; menuCd: number; rcptDt: string; aplcnt: string; aplcnYn: string; } export interface MenuModificationDemandDetail extends MenuModificationDemand { mdfcnCn: string; userUnqId: string; aplcntEml: string; } export const menuModificationDemandCreateRequestDtoSchema = z.object({ menuCd: z.number(), mdfcnCn: z.string(), userUnqId: z.string().optional(), aplcnt: z.string(), aplcntEml: z.string().optional(), }); export const menuModificationDemandUpdateRequestDtoSchema = z.object({ mdfcnCn: z.string(), aplcntEml: z.string().optional(), aplcnYn: z.string(), }); export type MenuModificationDemandCreateRequestDto = z.infer< typeof menuModificationDemandCreateRequestDtoSchema >; export type MenuModificationDemandUpdateRequestDto = z.infer< typeof menuModificationDemandUpdateRequestDtoSchema >; export type PageMenuModificationDemandListResponseDto = PageableList; export interface MenuModificationDemandService { getMenuModificationDemandList( params: MenuModificationDemandParams, ): Promise; getMenuModificationDemand( mdfcnRcptNo: number, ): Promise; createMenuModificationDemand( data: MenuModificationDemandCreateRequestDto, ): Promise; updateMenuModificationDemand( mdfcnRcptNo: number, data: MenuModificationDemandUpdateRequestDto, ): Promise; deleteMenuModificationDemand(mdfcnRcptNo: number): Promise; }