43 lines
952 B
TypeScript
43 lines
952 B
TypeScript
import type { PageableList, PageableParams } from "@/shared/model";
|
|
|
|
export const BOARD_TYPE = {
|
|
BBSNORMAL: "BBSNORMAL",
|
|
BBSFAQ: "BBSFAQ",
|
|
BBSIMAGE: "BBSIMAGE",
|
|
BBSMOVIE: "BBSMOVIE",
|
|
} as const;
|
|
|
|
export type BoardType = (typeof BOARD_TYPE)[keyof typeof BOARD_TYPE];
|
|
|
|
export interface BoardPopupParams extends PageableParams {
|
|
bbsNm?: string;
|
|
}
|
|
|
|
export interface BoardPopup {
|
|
bbsId: number;
|
|
bbsTypeCd: BoardType;
|
|
bbsTypeNm: string;
|
|
bbsNm: string;
|
|
bbsExpln: string;
|
|
rfrncUseYn: string;
|
|
atflUseYn: string;
|
|
atflMaxCnt: number;
|
|
atflMaxFileSz: number;
|
|
ansUseYn: string;
|
|
cmntUseYn: string;
|
|
dgstfnEvlUseYn: string;
|
|
smsUseYn: string;
|
|
upndFixUseYn: string;
|
|
pstgPrdUseYn: string;
|
|
popupUseYn: string;
|
|
delYn: string;
|
|
regDt: string;
|
|
pstCnt: number;
|
|
}
|
|
|
|
export type BoardPopupList = PageableList<BoardPopup>;
|
|
|
|
export interface BoardService {
|
|
getBoardPopupList: (params: BoardPopupParams) => Promise<BoardPopupList>;
|
|
}
|