import { BoardSort, PostSearchType } from '@/constants/forum';

// 게시판 글 조회
export interface LatestPostsRequest {
	boardID: number;
	boardCode: string;
	postID?: number|null;
	page: number;
	perPage: number;
	boardPrefixID?: number|null;
	sort?: BoardSort|null;
	search?: PostSearchType|null;
	keyword?: string|null;
};

// 게시글 목록 조회
export interface BoardPostsRequest {
	boardID: number;
	boardCode: string;
	page: number;
	perPage: number;
	boardPrefixID?: number|null;
	sort?: BoardSort|null;
	search?: PostSearchType|null;
	keyword?: string|null;
};

// 전체 게시글 목록 조회
export interface AllPostsRequest {
	page: number;
	perPage: number;
	sort?: BoardSort|null;
	search?: PostSearchType|null;
	keyword?: string|null;
};