redeemed filter

This commit is contained in:
_Bastler
2021-05-07 14:41:12 +02:00
parent 908a54506c
commit 348a59820a
4 changed files with 77 additions and 13 deletions
+4 -4
View File
@@ -15,16 +15,16 @@ 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);
getPages(quota: string, page: number, size: number, search: string, redeemed: string) {
return this.http.get(environment.apiUrl + "/invites" + (quota ? "?quota=" + quota + "&" : "?") + "page=" + page + "&size=" + size + "&search=" + search + (redeemed ? "&redeemed=" + redeemed : ""));
}
getOthers(quota: string) {
return this.http.get(environment.apiUrl + "/invites/" + quota + "/others");
}
getOthersPages(quota: string, page: number, size: number, search: string) {
return this.http.get(environment.apiUrl + "/invites/" + quota + "/others?page=" + page + "&size=" + size + "&search=" + search);
getOthersPages(quota: string, page: number, size: number, search: string, redeemed: string) {
return this.http.get(environment.apiUrl + "/invites/" + quota + "/others?page=" + page + "&size=" + size + "&search=" + search + (redeemed ? "&redeemed=" + redeemed : ""));
}
create(quota: string, invite: any) {