2026-04-08 18:15:44 +03:30
|
|
|
import { ConsumerInfo } from '@/common/decorators/consumerInfo.decorator'
|
2026-04-06 13:31:40 +03:30
|
|
|
import { Controller, Get } from '@nestjs/common'
|
2026-03-16 17:56:51 +03:30
|
|
|
import { ApiTags } from '@nestjs/swagger'
|
2026-04-06 13:31:40 +03:30
|
|
|
import { ConsumerService } from './consumer.service'
|
2026-03-16 17:56:51 +03:30
|
|
|
|
|
|
|
|
@ApiTags('Consumer')
|
|
|
|
|
@Controller('consumer')
|
2026-04-06 13:31:40 +03:30
|
|
|
export class ConsumerController {
|
|
|
|
|
constructor(private service: ConsumerService) {}
|
|
|
|
|
|
|
|
|
|
@Get('')
|
2026-04-08 18:15:44 +03:30
|
|
|
async findOne(@ConsumerInfo('user_id') userId: string) {
|
2026-04-06 13:31:40 +03:30
|
|
|
return this.service.getInfo(userId)
|
|
|
|
|
}
|
|
|
|
|
}
|