Mobilról működik a hívás https-en :)

This commit is contained in:
2025-01-21 12:50:36 +01:00
parent 6a46975cfd
commit 3b11c6adc5
12 changed files with 83 additions and 16 deletions
@@ -1,43 +0,0 @@
using System.Text.Json.Serialization;
namespace WorkFlowCheck.BL.DTO
{
public class ApiResponseBaseDTO
{
public ApiResponseBaseDTO()
{
Errors = new List<string>();
}
public bool IsSuccess { get; set; }
public List<string> Errors { get; set; }
public bool HandleError { get; set; }
public string Error
{
get
{
if (Errors == null || Errors.Count() == 0) return string.Empty;
return string.Join(';', Errors);
}
}
}
public class ApiResponseDTO : ApiResponseBaseDTO
{
public object Data { get; set; }
}
public interface IApiResponseDTO<out T>
{
}
public class ApiResponseDTO<T> : ApiResponseBaseDTO, IApiResponseDTO<T>
{
public T Data { get; set; }
}
public class ApiResponseListDTO<T> : ApiResponseBaseDTO
{
public T[] Data { get; set; }
public int Total { get; set; }
}
}
-10
View File
@@ -1,10 +0,0 @@
namespace WorkFlowCheck.BL.DTO
{
public class UserDTO
{
public int Id { get; set; }
public string Email { get; set; } = null!;
public string FirstName { get; set; } = null!;
public string LastName { get; set; } = null!;
}
}