using Admin.NET.Plugin.AiDOP.Dto.S8;
using Admin.NET.Plugin.AiDOP.Service.S8;
namespace Admin.NET.Plugin.AiDOP.Controllers.S8;
[ApiController]
[Route("api/aidop/s8/config/monitor-options")]
[NonUnify]
public class AdoS8ConfigMonitorDictionaryController : ControllerBase
{
private readonly S8MonitorDictionaryService _svc;
public AdoS8ConfigMonitorDictionaryController(S8MonitorDictionaryService svc) => _svc = svc;
///
/// 监控对象/指标只读字典。返回结构与前端 BUSINESS_MONITOR_OPTIONS 同形。
/// CONFIG-MONITOR-DICT-READONLY-SEED-1。
///
[HttpGet]
public async Task GetOptionsAsync(
[FromQuery] long tenantId = 1,
[FromQuery] long factoryId = 1)
=> Ok(await _svc.GetOptionsAsync(tenantId, factoryId));
}