init to partner module
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { ConsumerInfo } from '@/common/decorators/consumerInfo.decorator'
|
||||
import { Controller, Get } from '@nestjs/common'
|
||||
import { ApiTags } from '@nestjs/swagger'
|
||||
import { PartnerService } from './partners.service'
|
||||
|
||||
@ApiTags('Partner')
|
||||
@Controller('partner')
|
||||
export class PartnerController {
|
||||
constructor(private service: PartnerService) {}
|
||||
|
||||
@Get('')
|
||||
async findOne(@ConsumerInfo('id') consumerId: string) {
|
||||
return this.service.getInfo(consumerId)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user