aparentemenete ya estan todos los endpoints de institucion tipo usuario
This commit is contained in:
@@ -5,5 +5,5 @@ export class InstitucionTipoCarritoUpdateDto {
|
||||
id_institucion_tipo_carrito: number;
|
||||
|
||||
@IsBoolean()
|
||||
mostar: boolean;
|
||||
mostrar: boolean;
|
||||
}
|
||||
|
||||
@@ -23,15 +23,22 @@ export class InstitucionTipoCarritoController {
|
||||
return this.institucionTipoCarritoService.findAll();
|
||||
}
|
||||
|
||||
@Get('tipos_carritos_institucion')
|
||||
tiposCarritosInstitucion(@Query() query: IdInstitucionDto) {
|
||||
@Get('institucion_tipos_carritos')
|
||||
institucionTiposCarritos(@Query() query: IdInstitucionDto) {
|
||||
return this.institucionTipoCarritoService.findAllByIdInstitucion(
|
||||
Number(query.id_institucion),
|
||||
);
|
||||
}
|
||||
|
||||
@Get('institucion_tipos_carritos_mostar')
|
||||
institucionTiposCarritosMostrar(@Query() query: IdInstitucionDto) {
|
||||
return this.institucionTipoCarritoService.findAllByIdInstitucionMostar(
|
||||
Number(query.id_institucion),
|
||||
);
|
||||
}
|
||||
|
||||
@Put()
|
||||
update(@Body() body: InstitucionTipoCarritoUpdateDto) {
|
||||
this.institucionTipoCarritoService.update(body);
|
||||
return this.institucionTipoCarritoService.update(body);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user