Create general structures in Mongo and SQL
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using Lib.Architecture.BuildingBlocks;
|
||||
|
||||
namespace Core.Blueprint.Application.UsesCases.SQL.Input
|
||||
{
|
||||
public class CreateSqlSampleRequest : Notificator, ICommand
|
||||
{
|
||||
public string Name { get; set; } = null!;
|
||||
public string Description { get; set; } = null!;
|
||||
|
||||
public bool Validate()
|
||||
{
|
||||
return Name != null && Name != string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
using Lib.Architecture.BuildingBlocks;
|
||||
|
||||
namespace Core.Blueprint.Application.UsesCases.SQL.Input
|
||||
{
|
||||
public class CreateUserProjectRequest : Notificator, ICommand
|
||||
{
|
||||
public string ProjectCode { get; set; } = null!;
|
||||
public string ProjectDescription { get; set; } = null!;
|
||||
public string UserId { get; set; } = null!;
|
||||
|
||||
public bool Validate()
|
||||
{
|
||||
return ProjectCode != null && ProjectCode != string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Core.Blueprint.Application.UsesCases.SQL.Input
|
||||
{
|
||||
public class DeleteUserProjectRequest : Notificator, ICommand
|
||||
public class DeleteSqlSampleRequest : Notificator, ICommand
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Core.Blueprint.Application.UsesCases.SQL.Input
|
||||
{
|
||||
public class GetAllUserProjectsRequest : Notificator, ICommand
|
||||
public class GetAllSqlSamplesRequest : Notificator, ICommand
|
||||
{
|
||||
public bool Validate()
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Core.Blueprint.Application.UsesCases.SQL.Input
|
||||
{
|
||||
public class GetUserProjectRequest : Notificator, ICommand
|
||||
public class GetSqlSampleRequest : Notificator, ICommand
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -3,11 +3,10 @@ using Lib.Architecture.BuildingBlocks;
|
||||
|
||||
namespace Core.Blueprint.Application.UsesCases.SQL.Input
|
||||
{
|
||||
public class UpdateUserProjectRequest : Notificator, ICommand
|
||||
public class UpdateSqlSampleRequest : Notificator, ICommand
|
||||
{
|
||||
public string ProjectCode { get; set; } = null!;
|
||||
public string ProjectDescription { get; set; } = null!;
|
||||
public string UserId { get; set; } = null!;
|
||||
public string Name { get; set; } = null!;
|
||||
public string Description { get; set; } = null!;
|
||||
public int Id { get; set; }
|
||||
public string Guid { get; set; } = null!;
|
||||
public DateTime CreatedAt { get; set; }
|
||||
Reference in New Issue
Block a user