user/src/modules/users/queries/find-all-users.query.ts

12 lines
314 B
TypeScript
Raw Normal View History

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