69 lines
1.8 KiB
TypeScript
69 lines
1.8 KiB
TypeScript
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<MenuModificationDemand>;
|
|
|
|
export interface MenuModificationDemandService {
|
|
getMenuModificationDemandList(
|
|
params: MenuModificationDemandParams,
|
|
): Promise<PageMenuModificationDemandListResponseDto>;
|
|
|
|
getMenuModificationDemand(
|
|
mdfcnRcptNo: number,
|
|
): Promise<MenuModificationDemandDetail>;
|
|
|
|
createMenuModificationDemand(
|
|
data: MenuModificationDemandCreateRequestDto,
|
|
): Promise<MenuModificationDemand>;
|
|
|
|
updateMenuModificationDemand(
|
|
mdfcnRcptNo: number,
|
|
data: MenuModificationDemandUpdateRequestDto,
|
|
): Promise<MenuModificationDemand>;
|
|
|
|
deleteMenuModificationDemand(mdfcnRcptNo: number): Promise<void>;
|
|
}
|