Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

소속 커뮤니티 정보 조회하기

Heedong Kim edited this page Jan 7, 2022 · 1 revision
{
    "isSuccess": true,
    "code": 1000,
    "message": "요청에 성공하였습니다.",
    "result": {
        "rooms": [
            {
                "roomId": 100,
                "iconImage": "www.cloudfront.smooth.com/image/room/100/213213213_thumbnail.png",
                "name": "두리짱",
                "unread": 2
            },
            {
                "roomId": 200,
                "iconImage": "www.cloudfront.smooth.com/image/room/200/546234324_thumbnail.png",
                "name": "밍디, 두리짱",
                "unread": 6
            }
        ],
        "communities": [
            {
                "communityId": 500,
                "iconImage": "Dsadsadsadsa",
                "name": "스무th",
                "unread": 3
            },
            {
                "communityId": 800,
                "iconImage": "Dsadsadsadsa",
                "name": "김희동님의 서버",
                "unread": 0
            }
        ],
        "community": {
            "communityId": 10,
            "name": "스무th",
            "categories": [
                {
                    "categoryId": 503,
                    "name": "채팅 채널",
                    "channels": [
                        {
                            "channelId": 505,
                            "name": "일반",
                            "type": "TEXT",
                            "public": true,
                            "threads": [
                                "channelId": 506,
                                "name": "스레드 1"
                            ]
                        }
                    ]
                },
                {
                    "categoryId": 504,
                    "name": "음성 채널",
                    "channels": [
                        {
                            "channelId": 506,
                            "name": "일반",
                            "type": "VOICE",
                            "public": true,
                            "threads": null
                        }
                    ]
                }
            ]
        },
        "channel": {
            "channelId": 505,
            "parent": null
            "name": "일반",
            "type": "TEXT",
            "public": true,
            "threads": [
                {
                    "channelId": 506,
                    "name": "스레드 1",
                    "author": {
                        "userId": 2,
                        "nickname": "김희동",
                        "profileImage": "www.cloudfront.smooth.com/image/user/2/321321321_thumbnail.png"
                    }
                    "createdAt": "2021-12-02 12:47:06"
                }
            ],
            "members": {
                "online": {
                    "count": 2,
                    "members": [
                        {
                            "userId": 1,
                            "nickname": "박병찬"
                            "profileImage": "www.cloudfront.smooth.com/image/user/1/213213213_thumbnail.png",
                            "state": "online",
                            "role": "OWNER"
                        },
                        {
                            "userId": 2,
                            "nickname": "김희동"
                            "profileImage": "www.cloudfront.smooth.com/image/user/2/321321321_thumbnail.png",
                            "state": "online",
                            "role": "NONE"
                        }
                    ]
                },
                "offline": {
                    "count": 1
                    "members": [
                        {
                            "userId": 3,
                            "nickname": "밍디"
                            "profileImage": "www.cloudfront.smooth.com/image/user/3/213213213_thumbnail.png",
                            "state": "offline",
                            "role": "NONE"
                        },
                    ]
                }
            }
        }
    }
}