carrera progrma listo

This commit is contained in:
xXpuma99Xx 2022-04-17 20:56:02 -05:00
parent d0c8d08ce5
commit d6e97e7f98
7 changed files with 19 additions and 9 deletions

View File

@ -28,7 +28,7 @@ import { EquipoTipoEntradaModule } from './equipo-tipo-entrada/equipo-tipo-entra
import { CarreraProgramaModule } from './carrera-programa/carrera-programa.module';
import { Carrera } from './carrera/entity/carrera.entity';
import { CarreraPrograma } from './carrera-programa/carrera-programa.entity';
import { CarreraPrograma } from './carrera-programa/entity/carrera-programa.entity';
import { Carrito } from './carrito/entity/carrito.entity';
import { Dia } from './dia/dia.entity';
import { Equipo } from './equipo/equipo.entity';

View File

@ -1,9 +1,19 @@
import { Controller, Get, Post, Put } from '@nestjs/common';
import { Controller, Delete, Get, Post, Put } from '@nestjs/common';
import { CarreraProgramaService } from './carrera-programa.service';
@Controller('carrera-programa')
export class CarreraProgramaController {
constructor(private carreraProgramaService: CarreraProgramaService) {}
@Post()
create() {}
@Delete()
delete() {}
@Get()
get() {}
@Put()
update() {}
}

View File

@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CarreraProgramaController } from './carrera-programa.controller';
import { CarreraProgramaService } from './carrera-programa.service';
import { CarreraPrograma } from './carrera-programa.entity';
import { CarreraPrograma } from './entity/carrera-programa.entity';
@Module({
imports: [TypeOrmModule.forFeature([CarreraPrograma])],

View File

@ -1,7 +1,7 @@
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { CarreraPrograma } from './carrera-programa.entity';
import { CarreraPrograma } from './entity/carrera-programa.entity';
@Injectable()
export class CarreraProgramaService {

View File

@ -1,6 +1,6 @@
import { Entity, PrimaryGeneratedColumn, ManyToOne, JoinColumn } from 'typeorm';
import { Carrera } from '../carrera/entity/carrera.entity';
import { Programa } from '../programa/programa.entity';
import { Carrera } from '../../carrera/entity/carrera.entity';
import { Programa } from '../../programa/programa.entity';
@Entity()
export class CarreraPrograma {

View File

@ -6,7 +6,7 @@ import {
OneToMany,
PrimaryGeneratedColumn,
} from 'typeorm';
import { CarreraPrograma } from '../../carrera-programa/carrera-programa.entity';
import { CarreraPrograma } from '../../carrera-programa/entity/carrera-programa.entity';
import { Institucion } from '../../institucion/entity/institucion.entity';
import { Usuario } from '../../usuario/usuario.entity';

View File

@ -1,6 +1,6 @@
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';
import { Equipo } from '../equipo/equipo.entity';
import { CarreraPrograma } from '../carrera-programa/carrera-programa.entity';
import { CarreraPrograma } from '../carrera-programa/entity/carrera-programa.entity';
@Entity()
export class Programa {