installed typeorm and added initial merchant resource
This commit is contained in:
parent
746adcd2fd
commit
ccc6540ae8
15 changed files with 1972 additions and 321 deletions
26
src/merchants/merchants.service.ts
Normal file
26
src/merchants/merchants.service.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { Injectable } from '@nestjs/common';
|
||||
import { CreateMerchantDto } from './dto/create-merchant.dto';
|
||||
import { UpdateMerchantDto } from './dto/update-merchant.dto';
|
||||
|
||||
@Injectable()
|
||||
export class MerchantsService {
|
||||
create(createMerchantDto: CreateMerchantDto) {
|
||||
return 'This action adds a new merchant';
|
||||
}
|
||||
|
||||
findAll() {
|
||||
return `This action returns all merchants`;
|
||||
}
|
||||
|
||||
findOne(id: number) {
|
||||
return `This action returns a #${id} merchant`;
|
||||
}
|
||||
|
||||
update(id: number, updateMerchantDto: UpdateMerchantDto) {
|
||||
return `This action updates a #${id} merchant`;
|
||||
}
|
||||
|
||||
remove(id: number) {
|
||||
return `This action removes a #${id} merchant`;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue