user/.old/queries/find-all-users.query.ts

12 lines
315 B
TypeScript
Raw Normal View History

2022-12-16 16:31:08 +00:00
import { FindAllUsersRequest } from '../domain/dtos/find-all-users.request';
2022-12-14 14:08:01 +00:00
export class FindAllUsersQuery {
page: number;
perPage: number;
constructor(findAllUsersRequest?: FindAllUsersRequest) {
this.page = findAllUsersRequest?.page ?? 1;
this.perPage = findAllUsersRequest?.perPage ?? 10;
}
}