-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
그룹 기록 추가 API 응답에 user info를 추가해서 반환한다.
- Loading branch information
Showing
5 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
BE/src/group/achievement/dto/group-achievement-detail-response.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IGroupAchievementDetail } from '../index'; | ||
import { IGroupAchievementDetail, UserInfo } from '../index'; | ||
import { AchievementDetailResponse } from '../../../achievement/dto/achievement-detail-response'; | ||
|
||
export class GroupAchievementDetailResponse extends AchievementDetailResponse { | ||
@ApiProperty({ description: 'usercode' }) | ||
userCode: string; | ||
@ApiProperty({ description: 'user', type: UserInfo }) | ||
user: UserInfo; | ||
|
||
constructor(achievementDetail: IGroupAchievementDetail) { | ||
super(achievementDetail); | ||
this.userCode = achievementDetail.userCode; | ||
this.user = new UserInfo( | ||
achievementDetail.userCode, | ||
achievementDetail.avatarUrl, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters