- 기본 게시글
- api사용하는 쪽에서 JSON.stringify()로 직렬화하여 전송
{ "title": "{title:제목, content:내용}", others... } //직렬화는 사용하는 쪽에서. 지정한 타입은 export로 내보내주세요 //타입명은 예시입니다 export interface DefaultPost { "title" { title:string, content:string }, }
- 타이머 게시글
- 직렬화할 필요 없음
{ "title": "HH:MM:SS", others... }
- 회고 게시글
- 기본 게시글의 content를 더 확장 or 다른방법
- 회고를 작성하려면 타이머게시글 유무 확인 필요(일단 당일)
{ "title": "{title:한줄회고, content:{favorite:좋았던 점,shame:아쉬운 점,sayToMe:나에게 한마디}}", others... }
- fullName관련
{ "fullName": "{name:이름, timerChannelId:타이머채널의 id}" } //fullName 타입 수정 필요