// 게시글 등록 결과
export interface PostCreateResponse {
	id: number;
}

// 게시판 게시글 정보
export interface PostResponse {
	id: number;
    boardID: number;
	boardCode: string;
    boardPrefixID: number|null;
    memberID: number|null;
    subject: string;
	content: string;
	sid: string|null;
	email: string|null;
	name: string|null;

	// 말머리
	boardPrefix: {
		id: number,
		boardID: number,
		name: string,
		color: string|null,
		posts: number;
	},

	// 작성자
	writer: {
		id: number;
		sid: string;
		name: string|null;
		summary: string|null;
		thumb: string|null;
		icon: string|null;
		gradeImage: string|null;
		createdAt: string;
	}

    isReply: boolean;
	isAnonymous: boolean;
    isSecret: boolean;
    isNotice: boolean;
    isSpeaker: boolean;
    views: number;
    likes: number;
    dislikes: number;
    comments: number;
    reports: number;
    images: number;
    medias: number;
    files: number;
    tags: number;
	ipAddress: string;
    createdAt: string;

	// 태그
	tagList: {
		id: number;
		slug: string;
	}[];

	// 이전 게시글
	prevID: number|null;
	nextID: number|null;

	// 좋아요 여부
	hasLike: boolean;

	// 싫어요 여부
	hasDislike: boolean;

	// 즐겨찾기 여부
	hasBookmark: boolean;

	// 신고 여부
	hasReport: boolean;
}

// 게시글 수정 결과
export interface PostUpdateResponse {
	id: number;
}