This commit is contained in:
xXpuma99Xx 2022-04-04 20:53:32 -05:00
parent 3c8dd17089
commit adf1cafc24
40 changed files with 227 additions and 41 deletions

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { CarreraProgramaService } from './carrera-programa.service';
@Controller('carrera-programa') @Controller('carrera-programa')
export class CarreraProgramaController {} export class CarreraProgramaController {
constructor(private carreraProgramaService: CarreraProgramaService) {}
}

View File

@ -1,4 +1,12 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { CarreraPrograma } from './carrera-programa.entity';
@Injectable() @Injectable()
export class CarreraProgramaService {} export class CarreraProgramaService {
constructor(
@InjectRepository(CarreraPrograma)
private repository: Repository<CarreraPrograma>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { CarreraService } from './carrera.service';
@Controller('carrera') @Controller('carrera')
export class CarreraController {} export class CarreraController {
constructor(private carreraService: CarreraService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Carrera } from './carrera.entity';
@Injectable() @Injectable()
export class CarreraService {} export class CarreraService {
constructor(
@InjectRepository(Carrera) private repository: Repository<Carrera>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { CarritoService } from './carrito.service';
@Controller('carrito') @Controller('carrito')
export class CarritoController {} export class CarritoController {
constructor(private carritoService: CarritoService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Carrito } from './carrito.entity';
@Injectable() @Injectable()
export class CarritoService {} export class CarritoService {
constructor(
@InjectRepository(Carrito) private repository: Repository<Carrito>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { EquipoService } from './equipo.service';
@Controller('equipo') @Controller('equipo')
export class EquipoController {} export class EquipoController {
constructor(private equipoService: EquipoService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Equipo } from './equipo.entity';
@Injectable() @Injectable()
export class EquipoService {} export class EquipoService {
constructor(
@InjectRepository(Equipo) private repository: Repository<Equipo>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { HoraExcepcionService } from './hora-excepcion.service';
@Controller('hora-excepcion') @Controller('hora-excepcion')
export class HoraExcepcionController {} export class HoraExcepcionController {
constructor(private horaExcepcionService: HoraExcepcionService) {}
}

View File

@ -2,9 +2,11 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm'; import { TypeOrmModule } from '@nestjs/typeorm';
import { HoraExcepcionController } from './hora-excepcion.controller'; import { HoraExcepcionController } from './hora-excepcion.controller';
import { HoraExcepcion } from './hora-excepcion.entity'; import { HoraExcepcion } from './hora-excepcion.entity';
import { HoraExcepcionService } from './hora-excepcion.service';
@Module({ @Module({
imports: [TypeOrmModule.forFeature([HoraExcepcion])], imports: [TypeOrmModule.forFeature([HoraExcepcion])],
controllers: [HoraExcepcionController], controllers: [HoraExcepcionController],
providers: [HoraExcepcionService],
}) })
export class HoraExcepcionModule {} export class HoraExcepcionModule {}

View File

@ -1,5 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing'; import { Test, TestingModule } from '@nestjs/testing';
import { HoraExcepcionService } from './hora_excepcion.service'; import { HoraExcepcionService } from './hora-excepcion.service';
describe('HoraExcepcionService', () => { describe('HoraExcepcionService', () => {
let service: HoraExcepcionService; let service: HoraExcepcionService;

View File

@ -0,0 +1,12 @@
import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { HoraExcepcion } from './hora-excepcion.entity';
@Injectable()
export class HoraExcepcionService {
constructor(
@InjectRepository(HoraExcepcion)
private repository: Repository<HoraExcepcion>,
) {}
}

View File

@ -1,4 +0,0 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class HoraExcepcionService {}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { InstitucionDiaService } from './institucion-dia.service';
@Controller('institucion-dia') @Controller('institucion-dia')
export class InstitucionDiaController {} export class InstitucionDiaController {
constructor(private institucionDiaService: InstitucionDiaService) {}
}

View File

@ -1,4 +1,12 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { InstitucionDia } from './institucion-dia.entity';
@Injectable() @Injectable()
export class InstitucionDiaService {} export class InstitucionDiaService {
constructor(
@InjectRepository(InstitucionDia)
private repository: Repository<InstitucionDia>,
) {}
}

View File

@ -1,4 +1,9 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { InstitucionInfraccionService } from './institucion-infraccion.service';
@Controller('institucion-infraccion') @Controller('institucion-infraccion')
export class InstitucionInfraccionController {} export class InstitucionInfraccionController {
constructor(
private institucionInfraccionService: InstitucionInfraccionService,
) {}
}

View File

@ -1,4 +1,12 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { InstitucionInfraccion } from './institucion-infraccion.entity';
@Injectable() @Injectable()
export class InstitucionInfraccionService {} export class InstitucionInfraccionService {
constructor(
@InjectRepository(InstitucionInfraccion)
private repository: Repository<InstitucionInfraccion>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { InstitucionService } from './institucion.service';
@Controller('institucion') @Controller('institucion')
export class InstitucionController {} export class InstitucionController {
constructor(private institucionService: InstitucionService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Institucion } from './institucion.entity';
@Injectable() @Injectable()
export class InstitucionService {} export class InstitucionService {
constructor(
@InjectRepository(Institucion) private repository: Repository<Institucion>,
) {}
}

View File

@ -1,6 +1,6 @@
import { Controller, Get, Query } from '@nestjs/common'; import { Controller, Get, Query } from '@nestjs/common';
import { ModulosDto } from './dto/modulos.dto';
import { ModuloService } from './modulo.service'; import { ModuloService } from './modulo.service';
import { ModulosDto } from './dto/modulos.dto';
@Controller('modulo') @Controller('modulo')
export class ModuloController { export class ModuloController {
constructor(private moduloService: ModuloService) {} constructor(private moduloService: ModuloService) {}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { MotivoService } from './motivo.service';
@Controller('motivo') @Controller('motivo')
export class MotivoController {} export class MotivoController {
constructor(private motivoService: MotivoService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Motivo } from './motivo.entity';
@Injectable() @Injectable()
export class MotivoService {} export class MotivoService {
constructor(
@InjectRepository(Motivo) private repository: Repository<Motivo>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { MultaService } from './multa.service';
@Controller('multa') @Controller('multa')
export class MultaController {} export class MultaController {
constructor(private multaService: MultaService) {}
}

View File

@ -1,4 +1,9 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Multa } from './multa.entity';
@Injectable() @Injectable()
export class MultaService {} export class MultaService {
constructor(@InjectRepository(Multa) private repository: Repository<Multa>) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { OperadorService } from './operador.service';
@Controller('operador') @Controller('operador')
export class OperadorController {} export class OperadorController {
constructor(private operadorService: OperadorService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Operador } from './operador.entity';
@Injectable() @Injectable()
export class OperadorService {} export class OperadorService {
constructor(
@InjectRepository(Operador) private repository: Repository<Operador>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { PrestamoService } from './prestamo.service';
@Controller('prestamo') @Controller('prestamo')
export class PrestamoController {} export class PrestamoController {
constructor(private prestamoService: PrestamoService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Prestamo } from './prestamo.entity';
@Injectable() @Injectable()
export class PrestamoService {} export class PrestamoService {
constructor(
@InjectRepository(Prestamo) private repository: Repository<Prestamo>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { ProgramaService } from './programa.service';
@Controller('programa') @Controller('programa')
export class ProgramaController {} export class ProgramaController {
constructor(private programaService: ProgramaService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Programa } from './programa.entity';
@Injectable() @Injectable()
export class ProgramaService {} export class ProgramaService {
constructor(
@InjectRepository(Programa) private repository: Repository<Programa>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { StatusService } from './status.service';
@Controller('status') @Controller('status')
export class StatusController {} export class StatusController {
constructor(private statusService: StatusService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Status } from './status.entity';
@Injectable() @Injectable()
export class StatusService {} export class StatusService {
constructor(
@InjectRepository(Status) private repository: Repository<Status>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { TipoCarritoService } from './tipo-carrito.service';
@Controller('tipo-carrito') @Controller('tipo-carrito')
export class TipoCarritoController {} export class TipoCarritoController {
constructor(private tipoCarritoService: TipoCarritoService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { TipoCarrito } from './tipo-carrito.entity';
@Injectable() @Injectable()
export class TipoCarritoService {} export class TipoCarritoService {
constructor(
@InjectRepository(TipoCarrito) private repository: Repository<TipoCarrito>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { TipoEntradaService } from './tipo-entrada.service';
@Controller('tipo-entrada') @Controller('tipo-entrada')
export class TipoEntradaController {} export class TipoEntradaController {
constructor(private tipoEntradaService: TipoEntradaService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { TipoEntrada } from './tipo-entrada.entity';
@Injectable() @Injectable()
export class TipoEntradaService {} export class TipoEntradaService {
constructor(
@InjectRepository(TipoEntrada) private repository: Repository<TipoEntrada>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { TipoUsuarioService } from './tipo-usuario.service';
@Controller('tipo-usuario') @Controller('tipo-usuario')
export class TipoUsuarioController {} export class TipoUsuarioController {
constructor(private tipoUsuarioService: TipoUsuarioService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { TipoUsuario } from './tipo-usuario.entity';
@Injectable() @Injectable()
export class TipoUsuarioService {} export class TipoUsuarioService {
constructor(
@InjectRepository(TipoUsuario) private repository: Repository<TipoUsuario>,
) {}
}

View File

@ -1,4 +1,7 @@
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { UsuarioService } from './usuario.service';
@Controller('usuario') @Controller('usuario')
export class UsuarioController {} export class UsuarioController {
constructor(private usuarioService: UsuarioService) {}
}

View File

@ -1,4 +1,11 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Usuario } from './usuario.entity';
@Injectable() @Injectable()
export class UsuarioService {} export class UsuarioService {
constructor(
@InjectRepository(Usuario) private repository: Repository<Usuario>,
) {}
}