105 lines
3.5 KiB
C#
105 lines
3.5 KiB
C#
using System;
|
|
|
|
namespace line_gestao_api.Dtos
|
|
{
|
|
public class UserDataListDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public int Item { get; set; }
|
|
public string? Linha { get; set; }
|
|
public string? Cliente { get; set; }
|
|
public string? TipoPessoa { get; set; }
|
|
public string? Nome { get; set; }
|
|
public string? RazaoSocial { get; set; }
|
|
public string? Cnpj { get; set; }
|
|
public string? Cpf { get; set; }
|
|
public string? Rg { get; set; }
|
|
public string? DataNascimento { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Endereco { get; set; }
|
|
public string? Celular { get; set; }
|
|
public string? TelefoneFixo { get; set; }
|
|
}
|
|
|
|
public class UserDataDetailDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public int Item { get; set; }
|
|
public string? Linha { get; set; }
|
|
public string? Cliente { get; set; }
|
|
public string? TipoPessoa { get; set; }
|
|
public string? Nome { get; set; }
|
|
public string? RazaoSocial { get; set; }
|
|
public string? Cnpj { get; set; }
|
|
public string? Cpf { get; set; }
|
|
public string? Rg { get; set; }
|
|
public DateTime? DataNascimento { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Endereco { get; set; }
|
|
public string? Celular { get; set; }
|
|
public string? TelefoneFixo { get; set; }
|
|
}
|
|
|
|
public class CreateUserDataRequest
|
|
{
|
|
public int? Item { get; set; }
|
|
public string? Linha { get; set; }
|
|
public string? Cliente { get; set; }
|
|
public string? TipoPessoa { get; set; }
|
|
public string? Nome { get; set; }
|
|
public string? RazaoSocial { get; set; }
|
|
public string? Cnpj { get; set; }
|
|
public string? Cpf { get; set; }
|
|
public string? Rg { get; set; }
|
|
public DateTime? DataNascimento { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Endereco { get; set; }
|
|
public string? Celular { get; set; }
|
|
public string? TelefoneFixo { get; set; }
|
|
}
|
|
|
|
public class UpdateUserDataRequest
|
|
{
|
|
public int? Item { get; set; }
|
|
public string? Linha { get; set; }
|
|
public string? Cliente { get; set; }
|
|
public string? TipoPessoa { get; set; }
|
|
public string? Nome { get; set; }
|
|
public string? RazaoSocial { get; set; }
|
|
public string? Cnpj { get; set; }
|
|
public string? Cpf { get; set; }
|
|
public string? Rg { get; set; }
|
|
public DateTime? DataNascimento { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Endereco { get; set; }
|
|
public string? Celular { get; set; }
|
|
public string? TelefoneFixo { get; set; }
|
|
}
|
|
|
|
public class UserDataKpisDto
|
|
{
|
|
public int TotalRegistros { get; set; }
|
|
public int ClientesUnicos { get; set; }
|
|
public int ComCpf { get; set; }
|
|
public int ComCnpj { get; set; }
|
|
public int ComEmail { get; set; }
|
|
}
|
|
|
|
// DTO para o Card do Cliente
|
|
public class UserDataClientGroupDto
|
|
{
|
|
public string Cliente { get; set; } = "";
|
|
public int TotalRegistros { get; set; }
|
|
public int ComCpf { get; set; }
|
|
public int ComCnpj { get; set; }
|
|
public int ComEmail { get; set; }
|
|
}
|
|
|
|
// ✅ RESPOSTA COMPOSTA (DADOS + KPIS)
|
|
public class UserDataGroupResponse
|
|
{
|
|
public PagedResult<UserDataClientGroupDto> Data { get; set; } = new();
|
|
public UserDataKpisDto Kpis { get; set; } = new();
|
|
}
|
|
}
|