21 lines
622 B
TypeScript
21 lines
622 B
TypeScript
import { Controller, Get, Param, Query, UseGuards } from '@nestjs/common';
|
|
import { HqAuthGuard } from '../../common/guards/hq-auth.guard';
|
|
import { AdminOssLogsService } from './admin-oss-logs.service';
|
|
import { AdminOssLogsQueryDto } from './dto/admin-query.dto';
|
|
|
|
@Controller('admin/logs/oss')
|
|
@UseGuards(HqAuthGuard)
|
|
export class AdminOssLogsController {
|
|
constructor(private readonly service: AdminOssLogsService) {}
|
|
|
|
@Get()
|
|
list(@Query() query: AdminOssLogsQueryDto) {
|
|
return this.service.list(query);
|
|
}
|
|
|
|
@Get(':id')
|
|
detail(@Param('id') id: string) {
|
|
return this.service.detail(BigInt(id));
|
|
}
|
|
}
|