{
loginSuccess: Boolean,
user: {
id: Number, // 사용자 id
nickname: String, // 사용자 이름
email: String, // 사용자 이메일
profileImage: String, // 사용자 프로필 사진
token: String // 사용자 token
},
follow: [String], // 팔로잉하고 있는 사용자 id
alarm: [ // 사용자가 받은 알람
{
sender: String, // 알람을 보낸 사용자의 이름
post: String, // 관련된 post id (nullable)
commentId: String, // 관련된 comment id (nullable)
image: String, // 관련된 post image (nullable)
content: String // 관련된 내용(좋아요인 경우 post 제목, 댓글인 경우 댓글 내용)
}
]
}
{
isAdmin: Boolean,
user: {
id: Number, // 사용자 id
nickname: String, // 사용자 이름
email: String, // 사용자 이메일
profileImage: String, // 사용자 프로필 사진
}
}
{
success: true,
}
{
success: Boolean,
users: [
{
id: Number, // 사용자 id
nickname: String, // 사용자 이름
email: String, // 사용자 이메일
profileImage: String, // 사용자 프로필 사진
}
]
}
{
success: true,
user: {
nickname: String, // 사용자 이름
email: String, // 사용자 이메일
profileImage: String, // 사용자 프로필 사진
coverImage: String, // 사용자 커버 사진
postNum: Number, // 사용자 게시글 개수
following: Number, // 사용자가 팔로우하고 있는 사용자 수
follower: Number // 사용자를 팔로우하고 있는 사용자 수
}
}
{
success: true,
post: {
userId: Number, // 작성한 사용자 id
title: String, // 게시글 제목
image: String, // 게시글 커버 사진
createdAt: String, // 게시글 생성 날짜(YYYY.MM.dd)
plan: [ // 게시글 일정
{
id: Number, // 일정 id
title: String, // 일정 제목
content: String, // 일정 내용
image: String // 일정 이미지
}
]
},
comments: [ // 게시글의 댓글
{
userId: Number, // 댓글을 작성한 사용자 id
profileImage: String, // 댓글을 작성한 사용자의 프로필 이미지
content: String, // 댓글 내용
createdAt: String // 댓글 생성날짜
}
],
likes: [Number], // 게시글을 좋아하는 사용자 id 리스트
}
{
title: String, // 게시글 제목
image: String, // 게시글 커버 이미지
plans: [
{
title: String, // 일정 제목
content: String, // 일정 내용
image: String // 일정 이미지
}
]
}
{
success: true,
postId: Number // 생성된 post id
}
{
userId: Number, // 게시글을 보고 싶은 사용자의 id
offset: Number, // 게시글 offset
limit: Number // 한번에 가져갈 게시글 개수
}
{
success: true,
posts: [
{
id: Number, // 게시글 id
title: String, // 게시글 제목
image: String, // 게시글 이미지
createdAt: String, // 게시글 생성 날짜
author: String, // 게시글 작성자 이름
profile: String, // 게시글 작성자 프로필 사진
comments: Number, // 댓글 개수
likes: String, // 좋아요한 사용자의 id가 ,를 구분자 *수정 필요
}
]
}
{
keyword: String, // 검색 키워드
offset: Number, // 게시글 offset
limit: Number // 한번에 가져갈 게시글 개수
}
{
success: true,
posts: [
{
id: Number, // 게시글 id
title: String, // 게시글 제목
image: String, // 게시글 이미지
createdAt: String, // 게시글 생성 날짜
author: String, // 게시글 작성자 이름
profile: String, // 게시글 작성자 프로필 사진
comments: Number, // 댓글 개수
likes: String, // 좋아요한 사용자의 id가 ,를 구분자 *수정 필요
}
]
}
{
success: Boolean
}
{
id: String, // 게시글 id
post: {
title: String, // 게시글 제목
image: String, // 게시글 이미지
},
modifiedPlans: [ // 변경된 plan 정보
{ // 변경된 plan
id: Number,
title: String,
content: String,
image: String
},
{ // 새로 추가된 Plan
title: String, // 일정 제목
content: String, // 일정 내용
image: String // 일정 이미지
}
],
deletedPlans: [Number] // 삭제할 일정의 id
}
{
success: Boolean,
postId: Number, // 변경한 게시글 id
}
{
receiver: Number, // 받는 사람 id
type: Number, // 알림 타입(0: 구독, 1: 좋아요. 2: 댓글)
postId: Number, // 관련된 post id (nullable)
commentId: Number, // 관련된 댓글 id (nullable)
}