This commit is contained in:
parent
f3f02e41ed
commit
951031592c
|
@ -208,6 +208,26 @@ export class AppController {
|
|||
return this.appService.changeStatusUser(pId, pStatus);
|
||||
}
|
||||
|
||||
@Put('user/updateAdminCommunity/:id')
|
||||
updateAdminCommunity(
|
||||
@Param('_id') id: string,
|
||||
@Body('dni') dni: string,
|
||||
@Body('name') name: string,
|
||||
@Body('last_name') last_name: string,
|
||||
@Body('email') email: string,
|
||||
@Body('phone') phone: number,
|
||||
@Body('community_id') community_id: string,
|
||||
) {
|
||||
return this.appService.updateAdminCommunity(
|
||||
id,
|
||||
dni,
|
||||
name,
|
||||
last_name,
|
||||
email,
|
||||
phone,
|
||||
community_id,
|
||||
);
|
||||
}
|
||||
// #==== API Communities
|
||||
@Post('community/createCommunity')
|
||||
createCommunity(
|
||||
|
@ -261,6 +281,22 @@ export class AppController {
|
|||
return this.appService.changeStatusCommunity(pId, pStatus);
|
||||
}
|
||||
|
||||
@Get('community/findHousesCommunity/:id')
|
||||
findHousesCommunity(
|
||||
@Param('id') community_id: string,
|
||||
) {
|
||||
return this.appService.findHousesCommunity(community_id);
|
||||
}
|
||||
|
||||
@Post('community/saveTenant')
|
||||
saveTenant(
|
||||
@Body('community_id') community_id: string,
|
||||
@Body('number_house') number_house: string,
|
||||
@Body('tenant_id') tenant_id: string,
|
||||
) {
|
||||
return this.appService.saveTenant(community_id, number_house, tenant_id);
|
||||
}
|
||||
|
||||
|
||||
// #==== API Common Areas
|
||||
@Post('commonArea/createCommonArea')
|
||||
|
|
Loading…
Reference in New Issue