ini
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace AuthHex.Models.IOs
|
||||
{
|
||||
[NotMapped]
|
||||
public class ApiRequest
|
||||
{
|
||||
[Required]
|
||||
public string FunctionName { get; set; } = string.Empty;
|
||||
|
||||
public object Payload { get; set; } = new();
|
||||
|
||||
[Required(AllowEmptyStrings = true)]
|
||||
public string? Reference { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace AuthHex.Models.IOs
|
||||
{
|
||||
[NotMapped]
|
||||
public class ApiResponse
|
||||
{
|
||||
public int StatusCode { get; set; } = 200;
|
||||
public bool Success { get; set; } = true;
|
||||
public string? Message { get; set; }
|
||||
public object? Data { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user