mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
20 lines
338 B
TypeScript
20 lines
338 B
TypeScript
import { Field, Int, ObjectType } from 'type-graphql'
|
|
|
|
@ObjectType()
|
|
export class Pagination {
|
|
@Field(() => Int)
|
|
total: number
|
|
|
|
@Field(() => Int)
|
|
page: number
|
|
|
|
@Field(() => Int)
|
|
pages: number
|
|
|
|
constructor(total: number, page: number, pages: number) {
|
|
this.total = total
|
|
this.page = page
|
|
this.pages = pages
|
|
}
|
|
}
|