chore: add deployment config
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
// 1. 공통 응답 구조 (API 명세 0번 참고)
|
||||
// 1. 공통 응답 구조
|
||||
export interface ApiResponse<T> {
|
||||
code: string;
|
||||
message: string;
|
||||
data: T;
|
||||
}
|
||||
|
||||
// 2. 게시글 (Post) 타입 (API 명세 2번 참고)
|
||||
// 2. 게시글 (Post) 타입
|
||||
export interface Post {
|
||||
id: number;
|
||||
title: string;
|
||||
@@ -13,7 +13,7 @@ export interface Post {
|
||||
categoryName: string;
|
||||
viewCount: number;
|
||||
createdAt: string;
|
||||
content?: string; // 상세 조회시에만 옴
|
||||
content?: string;
|
||||
}
|
||||
|
||||
// 3. 게시글 목록 페이징 응답
|
||||
@@ -24,7 +24,7 @@ export interface PostListResponse {
|
||||
last: boolean;
|
||||
}
|
||||
|
||||
// 4. 로그인 응답 (API 명세 1-3번 참고)
|
||||
// 4. 로그인 응답
|
||||
export interface AuthResponse {
|
||||
grantType: string;
|
||||
accessToken: string;
|
||||
@@ -32,34 +32,89 @@ export interface AuthResponse {
|
||||
accessTokenExpiresIn: number;
|
||||
}
|
||||
|
||||
// 5. 카테고리 (API 명세 4번 참고)
|
||||
// 5. 카테고리
|
||||
export interface Category {
|
||||
id: number;
|
||||
name: string;
|
||||
children: Category[];
|
||||
}
|
||||
|
||||
// 1. 회원가입 요청
|
||||
// 6. 프로필 정보
|
||||
export interface Profile {
|
||||
name: string;
|
||||
bio: string;
|
||||
imageUrl?: string;
|
||||
githubUrl?: string;
|
||||
email?: string;
|
||||
}
|
||||
|
||||
// 7. 회원가입 요청
|
||||
export interface SignupRequest {
|
||||
email: string;
|
||||
password: string;
|
||||
nickname: string;
|
||||
}
|
||||
|
||||
// 2. 이메일 인증 요청
|
||||
// 8. 이메일 인증 요청
|
||||
export interface VerifyRequest {
|
||||
email: string;
|
||||
code: string;
|
||||
}
|
||||
|
||||
// 3. 로그인 요청
|
||||
// 9. 로그인 요청
|
||||
export interface LoginRequest {
|
||||
email: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
// 4. 로그인 성공 응답 데이터
|
||||
// 10. 로그인 성공 응답 데이터
|
||||
export interface LoginResponse {
|
||||
accessToken: string;
|
||||
refreshToken?: string; // 나중을 위해 추가
|
||||
refreshToken?: string;
|
||||
}
|
||||
|
||||
// 11. 프로필 수정 요청
|
||||
export interface ProfileUpdateRequest {
|
||||
name: string;
|
||||
bio: string;
|
||||
imageUrl?: string;
|
||||
githubUrl?: string;
|
||||
email?: string;
|
||||
}
|
||||
|
||||
// 12. 카테고리 생성 요청
|
||||
export interface CategoryCreateRequest {
|
||||
name: string;
|
||||
parentId?: number | null;
|
||||
}
|
||||
|
||||
// 13. 카테고리 수정 요청
|
||||
export interface CategoryUpdateRequest {
|
||||
name: string;
|
||||
parentId?: number | null;
|
||||
}
|
||||
|
||||
// 14. 댓글 타입 (계층형)
|
||||
export interface Comment {
|
||||
id: number;
|
||||
content: string;
|
||||
author: string;
|
||||
isPostAuthor: boolean;
|
||||
memberId?: number | null;
|
||||
createdAt: string;
|
||||
children: Comment[];
|
||||
}
|
||||
|
||||
// 15. 댓글 작성 요청
|
||||
export interface CommentSaveRequest {
|
||||
postSlug: string;
|
||||
content: string;
|
||||
parentId?: number | null;
|
||||
guestNickname?: string; // 비회원일 경우 필수
|
||||
guestPassword?: string; // 비회원일 경우 필수
|
||||
}
|
||||
|
||||
// 16. 댓글 삭제 요청 (비회원 검증용)
|
||||
export interface CommentDeleteRequest {
|
||||
guestPassword?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user