se borraron archivos no necesarios
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
|
||||
import { CarreraService } from './carrera.service';
|
||||
import { CreateCarreraDto } from './dto/create-carrera.dto';
|
||||
import { UpdateCarreraDto } from './dto/update-carrera.dto';
|
||||
|
||||
@Controller('carrera')
|
||||
export class CarreraController {
|
||||
constructor(private readonly carreraService: CarreraService) {}
|
||||
|
||||
@Post()
|
||||
create(@Body() createCarreraDto: CreateCarreraDto) {
|
||||
return this.carreraService.create(createCarreraDto);
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.carreraService.findAll();
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.carreraService.findOne(+id);
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() updateCarreraDto: UpdateCarreraDto) {
|
||||
return this.carreraService.update(+id, updateCarreraDto);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.carreraService.remove(+id);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { CarreraService } from './carrera.service';
|
||||
import { CarreraController } from './carrera.controller';
|
||||
|
||||
@Module({
|
||||
controllers: [CarreraController],
|
||||
providers: [CarreraService],
|
||||
controllers: [],
|
||||
providers: [],
|
||||
exports: [],
|
||||
})
|
||||
export class CarreraModule {}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { CreateCarreraDto } from './dto/create-carrera.dto';
|
||||
import { UpdateCarreraDto } from './dto/update-carrera.dto';
|
||||
|
||||
@Injectable()
|
||||
export class CarreraService {
|
||||
create(createCarreraDto: CreateCarreraDto) {
|
||||
return 'This action adds a new carrera';
|
||||
}
|
||||
|
||||
findAll() {
|
||||
return `This action returns all carrera`;
|
||||
}
|
||||
|
||||
findOne(id: number) {
|
||||
return `This action returns a #${id} carrera`;
|
||||
}
|
||||
|
||||
update(id: number, updateCarreraDto: UpdateCarreraDto) {
|
||||
return `This action updates a #${id} carrera`;
|
||||
}
|
||||
|
||||
remove(id: number) {
|
||||
return `This action removes a #${id} carrera`;
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
import { CuestionarioAlumnoService } from './cuestionario-alumno.service';
|
||||
import { CreateCuestionarioAlumnoDto } from './dto/create-cuestionario-alumno.dto';
|
||||
import { UpdateCuestionarioAlumnoDto } from './dto/update-cuestionario-alumno.dto';
|
||||
|
||||
@Controller('cuestionario-alumno')
|
||||
export class CuestionarioAlumnoController {
|
||||
constructor(
|
||||
private readonly cuestionarioAlumnoService: CuestionarioAlumnoService,
|
||||
) {}
|
||||
|
||||
// @Post()
|
||||
// create(@Body() createCuestionarioAlumnoDto: CreateCuestionarioAlumnoDto) {
|
||||
// return this.cuestionarioAlumnoService.create(createCuestionarioAlumnoDto);
|
||||
// }
|
||||
|
||||
// @Get()
|
||||
// findAll() {
|
||||
// return this.cuestionarioAlumnoService.findAll();
|
||||
// }
|
||||
|
||||
// @Get(':id')
|
||||
// findOne(@Param('id') id: string) {
|
||||
// return this.cuestionarioAlumnoService.findOne(+id);
|
||||
// }
|
||||
|
||||
// @Patch(':id')
|
||||
// update(@Param('id') id: string, @Body() updateCuestionarioAlumnoDto: UpdateCuestionarioAlumnoDto) {
|
||||
// return this.cuestionarioAlumnoService.update(+id, updateCuestionarioAlumnoDto);
|
||||
// }
|
||||
|
||||
// @Delete(':id')
|
||||
// remove(@Param('id') id: string) {
|
||||
// return this.cuestionarioAlumnoService.remove(+id);
|
||||
// }
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { CuestionarioAlumnoService } from './cuestionario-alumno.service';
|
||||
import { CuestionarioAlumnoController } from './cuestionario-alumno.controller';
|
||||
|
||||
@Module({
|
||||
controllers: [CuestionarioAlumnoController],
|
||||
providers: [CuestionarioAlumnoService],
|
||||
controllers: [],
|
||||
providers: [],
|
||||
})
|
||||
export class CuestionarioAlumnoModule {}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { CreateCuestionarioAlumnoDto } from './dto/create-cuestionario-alumno.dto';
|
||||
import { UpdateCuestionarioAlumnoDto } from './dto/update-cuestionario-alumno.dto';
|
||||
|
||||
@Injectable()
|
||||
export class CuestionarioAlumnoService {
|
||||
create(createCuestionarioAlumnoDto: CreateCuestionarioAlumnoDto) {
|
||||
return 'This action adds a new cuestionarioAlumno';
|
||||
}
|
||||
|
||||
leer() {
|
||||
return `This action returns all cuestionarioAlumno`;
|
||||
}
|
||||
|
||||
findOne(id: number) {
|
||||
return `This action returns a #${id} cuestionarioAlumno`;
|
||||
}
|
||||
|
||||
update(id: number, updateCuestionarioAlumnoDto: UpdateCuestionarioAlumnoDto) {
|
||||
return `This action updates a #${id} cuestionarioAlumno`;
|
||||
}
|
||||
|
||||
remove(id: number) {
|
||||
return `This action removes a #${id} cuestionarioAlumno`;
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
|
||||
import { CuestionarioProgramaService } from './cuestionario-programa.service';
|
||||
import { CreateCuestionarioProgramaDto } from './dto/create-cuestionario-programa.dto';
|
||||
import { UpdateCuestionarioProgramaDto } from './dto/update-cuestionario-programa.dto';
|
||||
|
||||
@Controller('cuestionario-programa')
|
||||
export class CuestionarioProgramaController {
|
||||
constructor(private readonly cuestionarioProgramaService: CuestionarioProgramaService) {}
|
||||
|
||||
@Post()
|
||||
create(@Body() createCuestionarioProgramaDto: CreateCuestionarioProgramaDto) {
|
||||
return this.cuestionarioProgramaService.create(createCuestionarioProgramaDto);
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.cuestionarioProgramaService.findAll();
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.cuestionarioProgramaService.findOne(+id);
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() updateCuestionarioProgramaDto: UpdateCuestionarioProgramaDto) {
|
||||
return this.cuestionarioProgramaService.update(+id, updateCuestionarioProgramaDto);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.cuestionarioProgramaService.remove(+id);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { CuestionarioProgramaService } from './cuestionario-programa.service';
|
||||
import { CuestionarioProgramaController } from './cuestionario-programa.controller';
|
||||
|
||||
@Module({
|
||||
controllers: [CuestionarioProgramaController],
|
||||
providers: [CuestionarioProgramaService],
|
||||
controllers: [],
|
||||
providers: [],
|
||||
})
|
||||
export class CuestionarioProgramaModule {}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { CreateCuestionarioProgramaDto } from './dto/create-cuestionario-programa.dto';
|
||||
import { UpdateCuestionarioProgramaDto } from './dto/update-cuestionario-programa.dto';
|
||||
|
||||
@Injectable()
|
||||
export class CuestionarioProgramaService {
|
||||
create(createCuestionarioProgramaDto: CreateCuestionarioProgramaDto) {
|
||||
return 'This action adds a new cuestionarioPrograma';
|
||||
}
|
||||
|
||||
findAll() {
|
||||
return `This action returns all cuestionarioPrograma`;
|
||||
}
|
||||
|
||||
findOne(id: number) {
|
||||
return `This action returns a #${id} cuestionarioPrograma`;
|
||||
}
|
||||
|
||||
update(id: number, updateCuestionarioProgramaDto: UpdateCuestionarioProgramaDto) {
|
||||
return `This action updates a #${id} cuestionarioPrograma`;
|
||||
}
|
||||
|
||||
remove(id: number) {
|
||||
return `This action removes a #${id} cuestionarioPrograma`;
|
||||
}
|
||||
}
|
||||
@@ -6,12 +6,19 @@ import {
|
||||
Patch,
|
||||
Param,
|
||||
Delete,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import { StatusService } from './status.service';
|
||||
import { CreateStatusDto } from './dto/create-status.dto';
|
||||
import { UpdateStatusDto } from './dto/update-status.dto';
|
||||
|
||||
import { AuthGuard } from '@nestjs/passport';
|
||||
|
||||
@Controller('status')
|
||||
export class StatusController {
|
||||
constructor(private readonly statusService: StatusService) {}
|
||||
|
||||
@Get()
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
async findAll() {
|
||||
return await this.statusService.findAll();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { CreateStatusDto } from './dto/create-status.dto';
|
||||
import { UpdateStatusDto } from './dto/update-status.dto';
|
||||
import { Status } from './entities/status.entity';
|
||||
import { Repository } from 'typeorm';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
|
||||
@Injectable()
|
||||
export class StatusService {}
|
||||
export class StatusService {
|
||||
constructor(
|
||||
@InjectRepository(Status)
|
||||
private readonly statusRepo: Repository<Status>,
|
||||
) {}
|
||||
|
||||
async findAll() {
|
||||
return await this.statusRepo.find();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TipoUsuarioService } from './tipo-usuario.service';
|
||||
import { TipoUsuarioController } from './tipo-usuario.controller';
|
||||
|
||||
@Module({
|
||||
controllers: [TipoUsuarioController],
|
||||
providers: [TipoUsuarioService],
|
||||
controllers: [],
|
||||
providers: [],
|
||||
})
|
||||
export class TipoUsuarioModule {}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { CreateTipoUsuarioDto } from './dto/create-tipo-usuario.dto';
|
||||
import { UpdateTipoUsuarioDto } from './dto/update-tipo-usuario.dto';
|
||||
|
||||
@Injectable()
|
||||
export class TipoUsuarioService {
|
||||
create(createTipoUsuarioDto: CreateTipoUsuarioDto) {
|
||||
return 'This action adds a new tipoUsuario';
|
||||
}
|
||||
|
||||
findAll() {
|
||||
return `This action returns all tipoUsuario`;
|
||||
}
|
||||
|
||||
findOne(id: number) {
|
||||
return `This action returns a #${id} tipoUsuario`;
|
||||
}
|
||||
|
||||
update(id: number, updateTipoUsuarioDto: UpdateTipoUsuarioDto) {
|
||||
return `This action updates a #${id} tipoUsuario`;
|
||||
}
|
||||
|
||||
remove(id: number) {
|
||||
return `This action removes a #${id} tipoUsuario`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user