using SJZY.Track.Application.Contract.Dtos.Warning;
namespace SJZY.Track.Application.Services.Warning;
///
/// 预警规则主体
///
[ApiExplorerSettings(GroupName = "预警服务")]
[Route("Warning")]
public class WarningService : ApplicationService
{
///
/// 新增/修改预警规则主体
///
///
///
[HttpPost("UpsertWarningRule")]
public async Task> UpsertWarningRule(UpsertWarningRuleInput input)
{
// var id = await _warningRuleRepository.UpsertReturnIdAsync(new WarningRuleEntity(
// input.Id,
// input.Name,
// input.SubSystemId,
// input.CustomId,
// input.IsEnabled,
// input.WarningType)
// );
return new UnifyResultDto(true, new IdBaseDto
{
Id = input.Id
});
}
///
/// 获取预警规则列表
///
///
///
[HttpPost("GetWarningRule")]
public Task>> GetWarningRule(GetWarningRuleInput input)
{
//var result = await _warningRuleRepository.GetWarningRuleListAsync(input.SubSystemId, input.KeyWord, input.IsEnabled, input.WarningType);
throw new NotImplementedException();
}
}