23 lines
756 B
TypeScript
23 lines
756 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger';
|
|
import { SystemAccountsService } from '../../application/services/system-accounts.service';
|
|
|
|
@ApiTags('System Accounts')
|
|
@ApiBearerAuth()
|
|
@Controller('system-accounts')
|
|
export class SystemAccountsController {
|
|
constructor(private readonly systemAccountsService: SystemAccountsService) {}
|
|
|
|
@Get()
|
|
@ApiOperation({ summary: '获取系统账户列表' })
|
|
async getSystemAccounts() {
|
|
return this.systemAccountsService.getSystemAccounts();
|
|
}
|
|
|
|
@Get('summary')
|
|
@ApiOperation({ summary: '获取系统账户汇总' })
|
|
async getSystemAccountsSummary() {
|
|
return this.systemAccountsService.getSystemAccountsSummary();
|
|
}
|
|
}
|