pagination for invites

This commit is contained in:
_Bastler
2021-05-07 11:25:01 +02:00
parent 7b0364ae8e
commit e144a012b5
3 changed files with 54 additions and 34 deletions
+4 -1
View File
@@ -15,12 +15,15 @@ export class InviteService {
return this.http.get(environment.apiUrl + "/invites" + (quota ? "?quota=" + quota : ""));
}
getPages(quota: string, page: number, size: number, search: string) {
return this.http.get(environment.apiUrl + "/invites" + (quota ? "?quota=" + quota + "&" : "?") + "page=" + page + "&size=" + size + "&search=" + search);
}
getOthers(quota: string) {
return this.http.get(environment.apiUrl + "/invites/" + quota + "/others");
}
getOthersPages(quota: string, page : number, size : number, search : string) {
getOthersPages(quota: string, page: number, size: number, search: string) {
return this.http.get(environment.apiUrl + "/invites/" + quota + "/others?page=" + page + "&size=" + size + "&search=" + search);
}