-
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.
Merge pull request #138 from gsainfoteam/revert-137-revert-136-122-ksh
Revert "Revert "get Grouplist by name query from groups""
- Loading branch information
Showing
4 changed files
with
130 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { Type } from 'class-transformer'; | ||
import { IsOptional, MaxLength, MinLength } from 'class-validator'; | ||
import { IsNumber, IsString } from 'class-validator'; | ||
|
||
export class GetGroupByNameQueryDto { | ||
@ApiPropertyOptional({ | ||
example: '0', | ||
description: '넘길 그룹 개수', | ||
required: false, | ||
}) | ||
@Type(() => Number) | ||
@IsNumber() | ||
@IsOptional() | ||
offset?: number; | ||
|
||
@ApiPropertyOptional({ | ||
example: '10', | ||
description: '페이지당 그룹 개수', | ||
required: false, | ||
}) | ||
@Type(() => Number) | ||
@IsNumber() | ||
@IsOptional() | ||
limit?: number; | ||
|
||
@ApiProperty({ | ||
example: '인포', | ||
description: '검색할 그룹 이름(일부)', | ||
required: true, | ||
}) | ||
@MaxLength(20) | ||
@MinLength(1) | ||
@IsString() | ||
query: string; | ||
} |
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,41 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class GroupResDto { | ||
@ApiProperty() | ||
uuid: string; | ||
|
||
@ApiProperty() | ||
name: string; | ||
|
||
@ApiProperty() | ||
description: string | null; | ||
|
||
@ApiProperty() | ||
createdAt: Date; | ||
|
||
@ApiProperty() | ||
presidentUuid: string; | ||
|
||
@ApiProperty() | ||
verifiedAt: Date | null; | ||
|
||
@ApiProperty() | ||
notionPageId: string | null; | ||
|
||
@ApiProperty() | ||
profileImageKey: string | null; | ||
|
||
@ApiProperty() | ||
profileImageUrl: string | null; | ||
|
||
@ApiProperty() | ||
verified: boolean; | ||
|
||
@ApiProperty() | ||
deletedAt: Date | null; | ||
} | ||
|
||
export class GroupListResDto { | ||
@ApiProperty({ type: [GroupResDto] }) | ||
list: GroupResDto[]; | ||
} |
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