added bitacora_mesa
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { BitacoraMesaController } from './bitacora_mesa.controller';
|
||||
import { BitacoraMesaService } from './bitacora_mesa.service';
|
||||
|
||||
describe('BitacoraMesaController', () => {
|
||||
let controller: BitacoraMesaController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [BitacoraMesaController],
|
||||
providers: [BitacoraMesaService],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<BitacoraMesaController>(BitacoraMesaController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,34 @@
|
||||
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
|
||||
import { BitacoraMesaService } from './bitacora_mesa.service';
|
||||
import { CreateBitacoraMesaDto } from './dto/create-bitacora_mesa.dto';
|
||||
import { UpdateBitacoraMesaDto } from './dto/update-bitacora_mesa.dto';
|
||||
|
||||
@Controller('bitacora-mesa')
|
||||
export class BitacoraMesaController {
|
||||
constructor(private readonly bitacoraMesaService: BitacoraMesaService) {}
|
||||
|
||||
@Post()
|
||||
create(@Body() createBitacoraMesaDto: CreateBitacoraMesaDto) {
|
||||
return this.bitacoraMesaService.create(createBitacoraMesaDto);
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.bitacoraMesaService.findAll();
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.bitacoraMesaService.findOne(+id);
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() updateBitacoraMesaDto: UpdateBitacoraMesaDto) {
|
||||
return this.bitacoraMesaService.update(+id, updateBitacoraMesaDto);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.bitacoraMesaService.remove(+id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { BitacoraMesaService } from './bitacora_mesa.service';
|
||||
import { BitacoraMesaController } from './bitacora_mesa.controller';
|
||||
|
||||
@Module({
|
||||
controllers: [BitacoraMesaController],
|
||||
providers: [BitacoraMesaService],
|
||||
})
|
||||
export class BitacoraMesaModule {}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { BitacoraMesaService } from './bitacora_mesa.service';
|
||||
|
||||
describe('BitacoraMesaService', () => {
|
||||
let service: BitacoraMesaService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [BitacoraMesaService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<BitacoraMesaService>(BitacoraMesaService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,26 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { CreateBitacoraMesaDto } from './dto/create-bitacora_mesa.dto';
|
||||
import { UpdateBitacoraMesaDto } from './dto/update-bitacora_mesa.dto';
|
||||
|
||||
@Injectable()
|
||||
export class BitacoraMesaService {
|
||||
create(createBitacoraMesaDto: CreateBitacoraMesaDto) {
|
||||
return 'This action adds a new bitacoraMesa';
|
||||
}
|
||||
|
||||
findAll() {
|
||||
return `This action returns all bitacoraMesa`;
|
||||
}
|
||||
|
||||
findOne(id: number) {
|
||||
return `This action returns a #${id} bitacoraMesa`;
|
||||
}
|
||||
|
||||
update(id: number, updateBitacoraMesaDto: UpdateBitacoraMesaDto) {
|
||||
return `This action updates a #${id} bitacoraMesa`;
|
||||
}
|
||||
|
||||
remove(id: number) {
|
||||
return `This action removes a #${id} bitacoraMesa`;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export class CreateBitacoraMesaDto {}
|
||||
@@ -0,0 +1,4 @@
|
||||
import { PartialType } from '@nestjs/mapped-types';
|
||||
import { CreateBitacoraMesaDto } from './create-bitacora_mesa.dto';
|
||||
|
||||
export class UpdateBitacoraMesaDto extends PartialType(CreateBitacoraMesaDto) {}
|
||||
@@ -0,0 +1 @@
|
||||
export class BitacoraMesa {}
|
||||
Reference in New Issue
Block a user