42organization/42gg.server.dev.v2

✨ [Feature] Admin 방 상세 조회 API

Closed this issue · 0 comments

Description

  • 방에 참여하지 않은 인원의 댓글도 인트라 id 찾아서 같이 반환

Request

URI

GET /party/admin/rooms/{room_id}

Response

Status code

  • 200

Response body

{
     roomId: number;
     title: string;
     content: string;
     categoryId: number;
     currentPeople: number;
     minPeople: number;
     maxPeople: number;
     roomStatus : enum;
     dueDate: Date;
     createDate: Date;
     myNickname: string | null;
     hostNickname: string;
	userNames: [
      {
        nickname: string;
        intraId: string;
      },
      ...
   ]
   comments: [
      {
        commentId: number;
        nickname: string;
        intraId: string;
        isExist: boolean;
        content: string;
        isHidden: boolean;
        createDate: Date;
      },
      ...
   ]
   
}