Dashboard
This commit is contained in:
@@ -32,17 +32,21 @@ export class SystemController {
|
||||
findAll(@Req() req: AuthenticatedRequest) {
|
||||
return this.systemService.findAll(req.user);
|
||||
}
|
||||
|
||||
@Get(':id/manager')
|
||||
getManagers(@Param('id') id: string) {
|
||||
return this.systemService.getManagers(id);
|
||||
}
|
||||
@Post(':id/manager')
|
||||
manaManager(@Param('id') id: string, @Body() body: any){
|
||||
return this.systemService.manageManagers(id, body);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.systemService.findOne(id);
|
||||
}
|
||||
|
||||
@Get(':id/manager')
|
||||
getManagers(@Param('id') id: string) {
|
||||
return this.systemService.getManagers(id);
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() updateSystemDto: UpdateSystemDto) {
|
||||
return this.systemService.update(id, updateSystemDto);
|
||||
@@ -52,9 +56,4 @@ export class SystemController {
|
||||
remove(@Param('id') id: string) {
|
||||
return this.systemService.remove(id);
|
||||
}
|
||||
|
||||
@Post(':id/manager')
|
||||
manaManager(@Param('id') id: string, @Body() body: any){
|
||||
return this.systemService.manageManagers(id, body);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { CreateSystemDto } from './dto/create-system.dto';
|
||||
import { UpdateSystemDto } from './dto/update-system.dto';
|
||||
import { KeySystemRepository, UserRepository } from 'src/model/repositories';
|
||||
import { User } from 'src/model/entitites';
|
||||
import { IUser } from 'src/model/interface';
|
||||
|
||||
@Injectable()
|
||||
export class SystemService {
|
||||
|
||||
Reference in New Issue
Block a user