remove paginated response fro model and make it as a global type
This commit is contained in:
parent
90cb73379e
commit
207029f5a1
@ -4,14 +4,3 @@
|
||||
export interface {{pascal}} {
|
||||
{{modelProperties}}
|
||||
}
|
||||
|
||||
export interface PaginatedResponse<T> {
|
||||
data: T[];
|
||||
meta: {
|
||||
totalItems: number;
|
||||
itemCount: number;
|
||||
itemsPerPage: number;
|
||||
totalPages: number;
|
||||
currentPage: number;
|
||||
};
|
||||
}
|
||||
@ -6,6 +6,8 @@ import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { {{pascal}}, PaginatedResponse } from '../models/{{singular}}.model';
|
||||
import { ConfigurationService } from '../../../services/configuration.service';
|
||||
import { PaginatedResponse } from '../../../../types';
|
||||
|
||||
|
||||
export interface SearchResponse<T> {
|
||||
data: T[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user