Moved domain objects from the API to Domain
This commit is contained in:
parent
5b8f0beb6e
commit
83203f967d
@ -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>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace Newsbot.Collector.Api.Domain.Requests;
|
||||
namespace Newsbot.Collector.Domain.Requests;
|
||||
|
||||
public class AddRoleRequest
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Newsbot.Collector.Api.Domain.Requests;
|
||||
namespace Newsbot.Collector.Domain.Requests;
|
||||
|
||||
public class RegisterUserRequest
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Newsbot.Collector.Api.Domain.Requests;
|
||||
namespace Newsbot.Collector.Domain.Requests;
|
||||
|
||||
public class UserLoginRequest
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Newsbot.Collector.Api.Domain.Requests;
|
||||
namespace Newsbot.Collector.Domain.Requests;
|
||||
|
||||
public class UserRefreshTokenRequest
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Newsbot.Collector.Api.Domain.Response;
|
||||
namespace Newsbot.Collector.Domain.Response;
|
||||
|
||||
public class AuthFailedResponse
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Newsbot.Collector.Api.Domain.Response;
|
||||
namespace Newsbot.Collector.Domain.Response;
|
||||
|
||||
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