add estatistica
All checks were successful
API and ETL Build / build_etl (push) Successful in 52s
API and ETL Build / build_api (push) Successful in 11s

This commit is contained in:
2025-06-12 21:00:34 -03:00
parent 226d819909
commit 23256245a0
8 changed files with 367 additions and 15 deletions

View File

@@ -0,0 +1,38 @@
namespace OpenCand.API.Model
{
public class MaioresEnriquecimento
{
public Guid IdCandidato { get; set; }
public string Nome { get; set; }
public float PatrimonioInicial { get; set; }
public int AnoInicial { get; set; }
public float PatrimonioFinal { get; set; }
public int AnoFinal { get; set; }
public float Enriquecimento { get; set; }
}
public class GetValueSumRequest
{
public string Type { get; set; } // "bem", "despesa", "receita"
public string GroupBy { get; set; } // "candidato", "partido", "uf", or "cargo"
public GetValueSumRequestFilter? Filter { get; set; }
public class GetValueSumRequestFilter
{
public string? Partido { get; set; } // Optional, can be null
public string? Uf { get; set; } // Optional, can be null
public int? Ano { get; set; } // Optional, can be null
public string? Cargo { get; set; } // Optional, can be null
}
}
public class GetValueSumResponse
{
public Guid? IdCandidato { get; set; }
public string? Sgpartido { get; set; }
public string? SiglaUf { get; set; }
public string? Cargo { get; set; }
public string? Nome { get; set; }
public int Ano { get; set; }
public decimal Valor { get; set; }
}
}