api change status
This commit is contained in:
parent
bf2c9b374a
commit
e1bcdd3995
|
@ -215,6 +215,8 @@ export class AppController {
|
||||||
) {
|
) {
|
||||||
return this.appService.changeStatusCommunity(pId, pStatus);
|
return this.appService.changeStatusCommunity(pId, pStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// #==== API Common Areas
|
// #==== API Common Areas
|
||||||
@Post('commonArea/createCommonArea')
|
@Post('commonArea/createCommonArea')
|
||||||
createCommonArea(
|
createCommonArea(
|
||||||
|
@ -254,6 +256,14 @@ export class AppController {
|
||||||
return this.appService.deleteCommonArea(id);
|
return this.appService.deleteCommonArea(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Post('commonArea/changeStatus')
|
||||||
|
changeStatusCommonArea(
|
||||||
|
@Body('id') pId: string,
|
||||||
|
@Body('status') pStatus: string,
|
||||||
|
) {
|
||||||
|
return this.appService.changeStatusCommonArea(pId, pStatus);
|
||||||
|
}
|
||||||
|
|
||||||
// #==== API GUEST
|
// #==== API GUEST
|
||||||
//#API userService - create user
|
//#API userService - create user
|
||||||
@Post('guest/createGuest')
|
@Post('guest/createGuest')
|
||||||
|
|
|
@ -343,6 +343,15 @@ export class AppService {
|
||||||
.pipe(map((message: string) => ({ message })));
|
.pipe(map((message: string) => ({ message })));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
changeStatusCommonArea(pId: string, pStatus: string) {
|
||||||
|
const pattern = { cmd: 'changeStatus' };
|
||||||
|
const payload = { id: pId, status: pStatus };
|
||||||
|
return this.clientCommonAreaApp
|
||||||
|
.send<string>(pattern, payload)
|
||||||
|
.pipe(map((message: string) => ({ message })));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ====================== GUESTS ===============================
|
// ====================== GUESTS ===============================
|
||||||
|
|
||||||
//POST parameter from API
|
//POST parameter from API
|
||||||
|
|
Loading…
Reference in New Issue