-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] client가 등록한 authorites를 확인할 수 있는 api 만들기
Fixes #54
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { ClientResDto } from './clientRes.dto'; | ||
import { ExternalAuthority } from '@prisma/client'; | ||
|
||
class AuthorityResDto implements ExternalAuthority { | ||
@ApiProperty() | ||
clientUuid: string; | ||
|
||
@ApiProperty() | ||
authority: string; | ||
} | ||
|
||
export class ExpandedClientResDto extends ClientResDto { | ||
@ApiProperty() | ||
ExternalAuthority: AuthorityResDto[]; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Prisma } from '@prisma/client'; | ||
|
||
export type ExpandedClient = Prisma.ClientGetPayload<{ | ||
include: { | ||
ExternalAuthority: true; | ||
}; | ||
}>; |