| 1 | import { CorrectResponse } from '../interface/table.interface'; |
| 2 | export class ResponseUtil { |
| 3 | static GetCorrectResponse<T>( |
| 4 | pageNo: number, |
| 5 | pageSize: number, |
| 6 | count: number, |
| 7 | list: T[], |
| 8 | ): CorrectResponse<T> { |
| 9 | return { |
| 10 | pageNo, |
| 11 | pageSize, |
| 12 | count, |
| 13 | list, |
| 14 | }; |
| 15 | } |
| 16 | } |
| 17 |