feat: 实现出库导入、区块链存证、查询日志、看板与系统设置
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { ApiTags, ApiOperation } from '@nestjs/swagger';
|
||||
import { Public } from './common/decorators/public.decorator';
|
||||
import { SettingsService } from './settings/settings.service';
|
||||
|
||||
@ApiTags('系统')
|
||||
@Controller()
|
||||
export class AppController {
|
||||
constructor(private readonly config: ConfigService) {}
|
||||
constructor(private readonly settings: SettingsService) {}
|
||||
|
||||
@Public()
|
||||
@Get('health')
|
||||
@@ -18,7 +18,8 @@ export class AppController {
|
||||
@Public()
|
||||
@Get('app-info')
|
||||
@ApiOperation({ summary: '应用基本信息(公开)' })
|
||||
appInfo() {
|
||||
return { appName: this.config.get<string>('appName') };
|
||||
async appInfo() {
|
||||
const appName = await this.settings.get('appName');
|
||||
return { appName };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user