features/api-cleanup #15
@ -1,12 +0,0 @@
|
|||||||
using System.Collections;
|
|
||||||
|
|
||||||
namespace Newsbot.Collector.Api.Domain.Results;
|
|
||||||
|
|
||||||
public class AuthenticationResult
|
|
||||||
{
|
|
||||||
public string? Token { get; set; }
|
|
||||||
public string? RefreshToken { get; set; }
|
|
||||||
|
|
||||||
public bool IsSuccessful { get; set; }
|
|
||||||
public IEnumerable<string>? ErrorMessage { get; set; }
|
|
||||||
}
|
|
@ -4,6 +4,8 @@
|
|||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace Newsbot.Collector.Api.Domain.Requests;
|
namespace Newsbot.Collector.Domain.Requests;
|
||||||
|
|
||||||
public class AddRoleRequest
|
public class AddRoleRequest
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Newsbot.Collector.Api.Domain.Requests;
|
namespace Newsbot.Collector.Domain.Requests;
|
||||||
|
|
||||||
public class RegisterUserRequest
|
public class RegisterUserRequest
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Newsbot.Collector.Api.Domain.Requests;
|
namespace Newsbot.Collector.Domain.Requests;
|
||||||
|
|
||||||
public class UserLoginRequest
|
public class UserLoginRequest
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Newsbot.Collector.Api.Domain.Requests;
|
namespace Newsbot.Collector.Domain.Requests;
|
||||||
|
|
||||||
public class UserRefreshTokenRequest
|
public class UserRefreshTokenRequest
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Newsbot.Collector.Api.Domain.Response;
|
namespace Newsbot.Collector.Domain.Response;
|
||||||
|
|
||||||
public class AuthFailedResponse
|
public class AuthFailedResponse
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace Newsbot.Collector.Api.Domain.Response;
|
namespace Newsbot.Collector.Domain.Response;
|
||||||
|
|
||||||
public class AuthSuccessfulResponse
|
public class AuthSuccessfulResponse
|
||||||
{
|
{
|
7
Newsbot.Collector.Domain/Results/AuthenticationResult.cs
Normal file
7
Newsbot.Collector.Domain/Results/AuthenticationResult.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace Newsbot.Collector.Domain.Results;
|
||||||
|
|
||||||
|
public class AuthenticationResult : BaseResult
|
||||||
|
{
|
||||||
|
public string? Token { get; set; }
|
||||||
|
public string? RefreshToken { get; set; }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user