carrera progrma listo
This commit is contained in:
parent
d0c8d08ce5
commit
d6e97e7f98
@ -28,7 +28,7 @@ import { EquipoTipoEntradaModule } from './equipo-tipo-entrada/equipo-tipo-entra
|
|||||||
import { CarreraProgramaModule } from './carrera-programa/carrera-programa.module';
|
import { CarreraProgramaModule } from './carrera-programa/carrera-programa.module';
|
||||||
|
|
||||||
import { Carrera } from './carrera/entity/carrera.entity';
|
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 { Carrito } from './carrito/entity/carrito.entity';
|
||||||
import { Dia } from './dia/dia.entity';
|
import { Dia } from './dia/dia.entity';
|
||||||
import { Equipo } from './equipo/equipo.entity';
|
import { Equipo } from './equipo/equipo.entity';
|
||||||
|
@ -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';
|
import { CarreraProgramaService } from './carrera-programa.service';
|
||||||
|
|
||||||
@Controller('carrera-programa')
|
@Controller('carrera-programa')
|
||||||
export class CarreraProgramaController {
|
export class CarreraProgramaController {
|
||||||
constructor(private carreraProgramaService: CarreraProgramaService) {}
|
constructor(private carreraProgramaService: CarreraProgramaService) {}
|
||||||
|
|
||||||
|
@Post()
|
||||||
|
create() {}
|
||||||
|
|
||||||
|
@Delete()
|
||||||
|
delete() {}
|
||||||
|
|
||||||
|
@Get()
|
||||||
|
get() {}
|
||||||
|
|
||||||
|
@Put()
|
||||||
|
update() {}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';
|
|||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import { CarreraProgramaController } from './carrera-programa.controller';
|
import { CarreraProgramaController } from './carrera-programa.controller';
|
||||||
import { CarreraProgramaService } from './carrera-programa.service';
|
import { CarreraProgramaService } from './carrera-programa.service';
|
||||||
import { CarreraPrograma } from './carrera-programa.entity';
|
import { CarreraPrograma } from './entity/carrera-programa.entity';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [TypeOrmModule.forFeature([CarreraPrograma])],
|
imports: [TypeOrmModule.forFeature([CarreraPrograma])],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from '@nestjs/common';
|
import { Injectable } from '@nestjs/common';
|
||||||
import { InjectRepository } from '@nestjs/typeorm';
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
import { Repository } from 'typeorm';
|
import { Repository } from 'typeorm';
|
||||||
import { CarreraPrograma } from './carrera-programa.entity';
|
import { CarreraPrograma } from './entity/carrera-programa.entity';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CarreraProgramaService {
|
export class CarreraProgramaService {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, ManyToOne, JoinColumn } from 'typeorm';
|
import { Entity, PrimaryGeneratedColumn, ManyToOne, JoinColumn } from 'typeorm';
|
||||||
import { Carrera } from '../carrera/entity/carrera.entity';
|
import { Carrera } from '../../carrera/entity/carrera.entity';
|
||||||
import { Programa } from '../programa/programa.entity';
|
import { Programa } from '../../programa/programa.entity';
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
export class CarreraPrograma {
|
export class CarreraPrograma {
|
@ -6,7 +6,7 @@ import {
|
|||||||
OneToMany,
|
OneToMany,
|
||||||
PrimaryGeneratedColumn,
|
PrimaryGeneratedColumn,
|
||||||
} from 'typeorm';
|
} 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 { Institucion } from '../../institucion/entity/institucion.entity';
|
||||||
import { Usuario } from '../../usuario/usuario.entity';
|
import { Usuario } from '../../usuario/usuario.entity';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';
|
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';
|
||||||
import { Equipo } from '../equipo/equipo.entity';
|
import { Equipo } from '../equipo/equipo.entity';
|
||||||
import { CarreraPrograma } from '../carrera-programa/carrera-programa.entity';
|
import { CarreraPrograma } from '../carrera-programa/entity/carrera-programa.entity';
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
export class Programa {
|
export class Programa {
|
||||||
|
Loading…
Reference in New Issue
Block a user