add estatistica
This commit is contained in:
10
OpenCand.API/Model/ConfigurationModel.cs
Normal file
10
OpenCand.API/Model/ConfigurationModel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace OpenCand.API.Model
|
||||
{
|
||||
public class ConfigurationModel
|
||||
{
|
||||
public List<string> Partidos { get; set; }
|
||||
public List<string> SiglasUF { get; set; }
|
||||
public List<int> Anos { get; set; }
|
||||
public List<string> Cargos { get; set; }
|
||||
}
|
||||
}
|
38
OpenCand.API/Model/EstatisticaModels.cs
Normal file
38
OpenCand.API/Model/EstatisticaModels.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user