using Admin.NET.Plugin.AiDOP.Service.S8; namespace Admin.NET.Plugin.AiDOP.Controllers.S8; [ApiController] [Route("api/aidop/s8/dictionaries")] [NonUnify] public class AdoS8DictionariesController : ControllerBase { private readonly S8DictionaryService _svc; public AdoS8DictionariesController(S8DictionaryService svc) => _svc = svc; [HttpGet("{dictType}")] public IActionResult Get(string dictType) { var result = _svc.GetDictionary(dictType); return result == null ? NotFound(new { message = "未知字典类型" }) : Ok(result); } }