-
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.
- Loading branch information
1 parent
7b342d3
commit 75ea184
Showing
10 changed files
with
90 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,51 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { NumberFieldOptional, StringFieldOptional } from '../../../../src/decorators'; | ||
|
||
export class SubscriptionDto { | ||
@ApiProperty({ required: false }) | ||
@NumberFieldOptional() | ||
amount: number; | ||
|
||
@ApiProperty({ required: false }) | ||
@StringFieldOptional() | ||
unit: string; | ||
|
||
@ApiProperty({ required: false }) | ||
@NumberFieldOptional() | ||
period: number; | ||
} | ||
|
||
export class PublicationDto { | ||
@ApiProperty({ type: [Number], required: false }) | ||
@NumberFieldOptional({ each: true, isArray: true }) | ||
kinds: number[]; | ||
|
||
@ApiProperty({ required: false }) | ||
@NumberFieldOptional() | ||
amount: number; | ||
|
||
@ApiProperty({ required: false }) | ||
@StringFieldOptional() | ||
unit: string; | ||
} | ||
|
||
export class AdmissionDto { | ||
@ApiProperty({ required: false }) | ||
@NumberFieldOptional() | ||
amount: number; | ||
|
||
@ApiProperty({ required: false }) | ||
@StringFieldOptional() | ||
unit: string; | ||
} | ||
|
||
export class FeesDto { | ||
@ApiProperty({ type: [SubscriptionDto], required: false }) | ||
subscription?: SubscriptionDto[]; | ||
|
||
@ApiProperty({ type: [PublicationDto], required: false }) | ||
publication?: PublicationDto[]; | ||
|
||
@ApiProperty({ type: [AdmissionDto], required: false }) | ||
admission?: AdmissionDto[]; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Column } from 'typeorm'; | ||
|
||
export class RetentionEntity { | ||
@Column() | ||
@Column({ nullable: true }) | ||
time?: number; | ||
|
||
@Column() | ||
@Column({ nullable: true }) | ||
count?: number; | ||
|
||
@Column() | ||
@Column({ nullable: true }) | ||
kinds?: number[]; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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