-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π¨[refactor] [v1.0.0] νλ‘λμ μ© λ°°ν¬ μ€λΉ #89
Comments
ν μ€νΈ ν΅κ³Όνκ²λ μ μ μλΉμ€ μμ |
μ΄μΈμ€ν ν° λ΄λμ 보 (κ΄λ¦¬μλ‘κ·ΈμΈ ) κΈΈμ΄ μμ |
μμλκΈ λ λ€νκ² λ½μμ€λ api μΆκ° |
μ μ μ‘°νμ createdAt |
https://api.gosrock.band/api-docs/#/tickets/TicketsController_getAllTicketsById |
https://api.gosrock.band/api-docs/#/tickets/TicketsController_postTicketEntryValidation |
https://api.gosrock.band/api-docs/#/tickets/TicketsController_updateTicketStatus οΏ½ν°μΌ μν λ³κ²½μ νλλ° |
https://api.gosrock.band/api-docs/#/tickets/TicketsController_getTicketsWith
createdAtμ΄ μλ id κΈ°μ€μΌλ‘! |
export class PageOptionsDto {
@ApiPropertyOptional({ enum: PageOrder, default: PageOrder.ASC })
@IsEnum(PageOrder)
@IsOptional()
@Expose()
readonly order: PageOrder = PageOrder.ASC;
@ApiPropertyOptional({
minimum: 1,
default: 1
})
@Type(() => Number)
@IsInt()
@Min(1)
@IsOptional()
@Expose()
readonly page: number = 1;
@ApiPropertyOptional({
minimum: 1,
maximum: 50,
default: 10
})
@Type(() => Number)
@IsInt()
@Min(1)
@Max(50)
@IsOptional()
@Expose()
readonly take: number = 10;
get skip(): number {
return (this.page - 1) * this.take;
}
} skip μ΄λ takeκ° μ΅μ
λμ΄λΌμ λ°±μλ μ€λ₯ λ°μ |
κ΄λ¦¬μ νν©μ‘°ν 곡μ§ν°μΌ κ°―μ μΆκ° |
κ΄λ¦¬μ μ£Όλ¬Έμ‘°ν νμ΄μ§λ€μ΄μ isFree λ€μ λ£κΈ° |
π¨ 리ν©ν λ§μ΄ νμν λΆλΆ
νμμΌ λ°€μ (8μ 2μΌ ) λ°±μλ νμ μ§νν μμ μ λλ€.
리ν©ν λ§ μμ λΈλ°μΉ
κ° κ°μ μ refactor νλͺ©μΌλ‘
β refactoring TODO
The text was updated successfully, but these errors were encountered: