req
- email (NOTNULL)
- name (NOTNULL)
- password (NOTNULL)
- nickName (NOTNULL)
res
- userId
프로필 이미지는 S3에 디폴트 이미지 업로드하고 URL을 프론트에 알려준다.
회원가입할때에는 프로필 이미지 안받음.
아티클 발행
req
- title
- contents
- thumbnail
res
- articleId
아티클 수정(타이틀, 컨텐츠)
req
- title
- contents
res
- articleId
아티클 썸네일 수정
req
- thumbnail
res
- articleId
아티클 조회
req
- articleId
res
- title
- contents
- thumbnail
- round
- article 작성 날짜
개인 채널 조회
req
- token
res
디폴트로 들어가야하는 데이터
- userId
- profileImage
- nickname
- introduceText
- subscribeList : {
thumbnail,
writerNickname,
카테고리,
구독 가능 상태 (후순위)
}
- 팔로우한 작가 리스트 : [{
- writerId
- thumbnail
- nickname
- 현재 구독 모집중인지 아닌지
}, → 디폴트로 10개 먼저 내려주고 더보기 눌렀을 때 전체 데이터 내려준다.
- writerId
- thumbnail
- nickname
- 현재 구독 모집중
}]
- 좋아요한 시리즈 : [
"series": {
"id": 1, //long
"thumbnail": "~~~.png", //string
"title": "모집공고 제목", //string
"introduceSentence": "소개문장", //string
"startDate": "2022-01-01", //string
"endDate": "2022-01-10", //string
"articleCount": 15, //int
"likes": 100, //int
},
"subscribe": {
"startDate": "2021-12-01", //string
"endDate": "2021-12-03", //string
"status": "", //string
},
"category": "poem", //string
"writer": {
"id": 1, //long
"nickname": "" //string
}
] → 전부 다 내려준다.
- 구독(결제)중인 시리즈 → 결제기능 들어가는 시점에 추가 그때 필요데이터 논의
작가일때 들어가야하는 데이터
- seriesList(작가가 발행한 시리즈) : [
"series": {
"id": 1, //long
"thumbnail": "~~~.png", //string
"title": "모집공고 제목", //string
"introduceSentence": "소개문장", //string
"startDate": "2022-01-01", //string
"endDate": "2022-01-10", //string
"articleCount": 15, //int
"likes": 100, //int
},
"subscribe": {
"startDate": "2021-12-01", //string
"endDate": "2021-12-03", //string
"status": "", //string
},
"category": "poem", //string
"writer": {
"id": 1, //long
"nickname": "" //string
}
] → 전부 다 내려준다
- 나를 팔로우한 일반 유저(몇명인지만 내려준다) → 단순 텍스트 ( 버튼 아님)
- 내가 팔로우한 작가(몇명인지만 내려준다) → 단순 텍스트( 버튼 아님 )
다른 유저 채널 조회
req
res
디폴트로 들어가야하는 데이터(일반유저일 경우)
- profileImage
- nickname
- introduceText
- 팔로잉(숫자만)
- 팔로우한 작가 리스트 : [{
- writerId
- thumbnail
- nickname
- 현재 구독 모집중인지 아닌지
}] → 처음에 10개
작가일때 추가되는 데이터
- seriesList(작가가 발행한 시리즈) : [
"series": {
"id": 1, //long
"thumbnail": "~~~.png", //string
"title": "모집공고 제목", //string
"introduceSentence": "소개문장", //string
"startDate": "2022-01-01", //string
"endDate": "2022-01-10", //string
"articleCount": 15, //int
"likes": 100, //int
},
"subscribe": {
"startDate": "2021-12-01", //string
"endDate": "2021-12-03", //string
"status": "", //string
},
"category": "poem", //string
"writer": {
"id": 1, //long
"nickname": "" //string
}
] → 전부 다 내려준다
내정보 불러오기
req
- token
res
-userId
- email
- userName
- profileImage
- profileIntroduce
- nickName
- group (작가인지 유저인지)
내정보 수정 요청
req
- profileIntroduce
- nickName
res
- userId
프로필 이미지 수정 요청
req
- thumbnail (멀티파트 폼 데이터) null일 경우에는 DB 프로필 null로 갱신 , null 아니면 img 넣음
res
- profileImage url
결제내역 버튼 눌렀을 때
결제 기능 넣을 때 한다.