create license management
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
import { Controller } from '@nestjs/common'
|
||||
import { ConsumerInfoInfo } from '@/common/decorators/consumerInfo.decorator'
|
||||
import { Controller, Get } from '@nestjs/common'
|
||||
import { ApiTags } from '@nestjs/swagger'
|
||||
import { ConsumerService } from './consumer.service'
|
||||
|
||||
@ApiTags('Consumer')
|
||||
@Controller('consumer')
|
||||
export class ConsumerController {}
|
||||
export class ConsumerController {
|
||||
constructor(private service: ConsumerService) {}
|
||||
|
||||
@Get('')
|
||||
async findOne(@ConsumerInfoInfo('user_id') userId: string) {
|
||||
return this.service.getInfo(userId)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user