import { Controller, Get } from '@nestjs/common';
import { ApiTags, ApiOperation } from '@nestjs/swagger';
import { Public } from '@/shared/decorators/public.decorator';

@ApiTags('健康检查')
@Controller()
export class HealthController {
  @Public()
  @Get('health')
  @ApiOperation({ summary: '健康检查端点' })
  health() {
    return {
      status: 'ok',
      timestamp: new Date().toISOString(),
      service: 'identity-service',
    };
  }
}
