Skip to content

Commit

Permalink
๐Ÿ‘€ :: chore :: func getGroupList
Browse files Browse the repository at this point in the history
  • Loading branch information
soyeonkim0227 committed Dec 28, 2023
1 parent 2ed5369 commit c68518b
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions src/chat/chat.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,31 @@ export class ChatController {
};
}

// @ApiOperation({ summary: "์ฑ„ํŒ…๋ฐฉ ์ œ๋ชฉ ๊ฒ€์ƒ‰ API", description: "์ฑ„ํŒ…๋ฐฉ ์ œ๋ชฉ ๊ฒ€์ƒ‰ํ•˜๊ธฐ" })
// @ApiHeader({ name: "authorization", required: true })
// @ApiOkResponse({
// status: 200,
// description: "์ฑ„ํŒ…๋ฐฉ ์ œ๋ชฉ ๊ฒ€์ƒ‰ ์„ฑ๊ณต"
// })
// @ApiUnauthorizedResponse({
// status: 401,
// description: "์•ก์„ธ์Šค ํ† ํฐ ๊ฒ€์ฆ ์‹คํŒจ"
// })
// @ApiNotFoundResponse({
// status: 404,
// description: "์กด์žฌํ•˜์ง€ ์•Š๋Š” ์ฑ„ํŒ…๋ฐฉ ์ œ๋ชฉ"
// })
// @Get('search')
// async searchGroupTitle(@Headers('authorization') accesstoken: string, @Query('searchWord') searchWord: string) {
// const data = await this.chatService.searchGroupTitle(accesstoken, searchWord);

// return {
// data,
// statusCode: 200,
// statusMsg: "์ฑ„ํŒ…๋ฐฉ ์ œ๋ชฉ ๊ฒ€์ƒ‰ ์„ฑ๊ณต"
// };
// }

@ApiOperation({ summary: "์ฑ„ํŒ…๋ฐฉ ๋ฆฌ์ŠคํŠธ ์กฐํšŒํ•˜๊ธฐ API", description: "์ฑ„ํŒ…๋ฐฉ ๋ฆฌ์ŠคํŠธ ์กฐํšŒํ•˜๊ธฐ" })
@ApiHeader({ name: "authorization", required: true })
@ApiOkResponse({
Expand All @@ -92,8 +117,8 @@ export class ChatController {
description: "์ฐธ์—ฌํ•œ ์ฑ„ํŒ…๋ฐฉ์ด ์—†์Œ"
})
@Get('list')
async getChatList(@Headers('authorization') accesstoken: string) {
const data = await this.chatService.getChatList(accesstoken);
async getGroupList(@Headers('authorization') accesstoken: string): Promise<object> {
const data = await this.chatService.getGroupList(accesstoken);

return {
data,
Expand Down

0 comments on commit c68518b

Please sign in to comment.