import { Controller, Get } from '@nestjs/common'; import { DictsService } from './dicts.service.js'; /** 字典聚合接口:前端登录后一次性拉取全部启用字典(仅登录态,无需权限码)。 */ @Controller('dicts') export class DictsController { constructor(private readonly service: DictsService) {} @Get() all() { return this.service.allEnabled(); } }