modulo institucion final

This commit is contained in:
xXpuma99Xx 2022-06-22 10:22:33 -05:00
parent af3e705423
commit 475c28025a
6 changed files with 23 additions and 13 deletions

View File

@ -26,6 +26,14 @@ export class UpdateInstitucionDto {
@IsOptional()
email_institucional?: boolean;
@IsString()
@IsOptional()
responsable?: string;
@IsString()
@IsOptional()
telefono?: string;
@IsNumber()
@IsOptional()
tiempo_entrega?: number;
@ -37,4 +45,8 @@ export class UpdateInstitucionDto {
@IsNumber()
@IsOptional()
tiempo_recoger?: number;
@IsString()
@IsOptional()
ubicacion?: string;
}

View File

@ -6,7 +6,4 @@ export class InstitucionMinOutputDto {
@Expose()
institucion;
@Expose()
email_institucional;
}

View File

@ -7,9 +7,6 @@ export class InstitucionesOutputDto {
@Expose()
institucion;
// @Expose()
// dominio;
@Expose()
email_institucional;
}

View File

@ -7,7 +7,6 @@ import { InstitucionTipoCarrito } from '../../institucion-tipo-carrito/entity/in
import { InstitucionTipoEntrada } from '../../institucion-tipo-entrada/entity/institucion-tipo-entrada.entity';
import { Modulo } from '../../modulo/entity/modulo.entity';
import { Operador } from '../../operador/entity/operador.entity';
import { Usuario } from '../../usuario/entity/usuario.entity';
@Entity()
export class Institucion {

View File

@ -56,11 +56,16 @@ export class InstitucionController {
ejemplo: {
value: {
id_institucion: 200,
activo: true,
dias_multa_retraso: 7,
dias_multa_retrtiempo_entregaaso: 7,
tiempo_prestamo: 7,
tiempo_recoger: 7,
_activo: true,
_dias_multa_retraso: 7,
_dominio: '@pcpuma.acatlan.unam.mx',
_email_institucional: true,
_responsable: '',
_telefono: '',
_tiempo_entrega: 7,
_tiempo_prestamo: 7,
_tiempo_recoger: 7,
_ubicacion: '',
},
},
},

View File

@ -32,7 +32,7 @@ export class InstitucionService {
return this.repository.save(institucion);
})
.then((_) => ({
message: 'Se actualizó correctamente la institución.',
message: 'Se guardaron los cambios correctamente .',
}));
}
}