-
Notifications
You must be signed in to change notification settings - Fork 17
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
- Loading branch information
1 parent
79deeab
commit 9719201
Showing
39 changed files
with
230 additions
and
189 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
8 changes: 4 additions & 4 deletions
8
apps/server/src/modules/account/api/dto/account-search.dto.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
22 changes: 8 additions & 14 deletions
22
apps/server/src/modules/account/api/dto/param/account-by-id.body.params.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,37 +1,31 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { PrivacyProtect, SanitizeHtml } from '@shared/controller'; | ||
import { IsBoolean, IsString, IsOptional, Matches, IsEmail } from 'class-validator'; | ||
import { passwordPattern } from '../password-pattern'; | ||
import { passwordPattern } from '../../../domain/password-pattern'; | ||
|
||
export class AccountByIdBodyParams { | ||
@IsOptional() | ||
@IsString() | ||
@SanitizeHtml() | ||
@IsEmail() | ||
@ApiProperty({ | ||
@ApiPropertyOptional({ | ||
description: 'The new user name for the user.', | ||
required: false, | ||
nullable: true, | ||
}) | ||
username?: string; | ||
public username?: string; | ||
|
||
@PrivacyProtect() | ||
@IsOptional() | ||
@IsString() | ||
@Matches(passwordPattern) | ||
@ApiProperty({ | ||
@ApiPropertyOptional({ | ||
description: 'The new password for the user.', | ||
required: false, | ||
nullable: true, | ||
}) | ||
password?: string; | ||
public password?: string; | ||
|
||
@IsOptional() | ||
@IsBoolean() | ||
@ApiProperty({ | ||
@ApiPropertyOptional({ | ||
description: 'The new activation state of the user.', | ||
required: false, | ||
nullable: true, | ||
}) | ||
activated?: boolean; | ||
public activated?: boolean; | ||
} |
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ export class AccountByIdParams { | |
required: true, | ||
nullable: false, | ||
}) | ||
id!: string; | ||
public id!: 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
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
Oops, something went wrong.