[성현모] UniqueKeyApi REST 완료
This commit is contained in:
55
Projects/WebApi/WebApi.Project.UniqueKeyApi/Models/Packet.cs
Normal file
55
Projects/WebApi/WebApi.Project.UniqueKeyApi/Models/Packet.cs
Normal file
@ -0,0 +1,55 @@
|
||||
using WebApi.Library.Enums;
|
||||
|
||||
namespace WebApi.Project.UniqueKeyApi.Models
|
||||
{
|
||||
#region Unique Key
|
||||
//Insert
|
||||
public class Request_InsertUniqueKey
|
||||
{
|
||||
public string Identity { get; set; } = string.Empty;
|
||||
|
||||
public string? Data1 { get; set; } = string.Empty;
|
||||
public string? Data2 { get; set; } = string.Empty;
|
||||
public string? Data3 { get; set; } = string.Empty;
|
||||
public string? Data4 { get; set; } = string.Empty;
|
||||
public string? Data5 { get; set; } = string.Empty;
|
||||
}
|
||||
public class Response_InsertUniqueKy
|
||||
{
|
||||
public string? Identity { get; set; } = string.Empty;
|
||||
public string? Result { get; set; } = WebApiResult.Success.ToString();
|
||||
}
|
||||
|
||||
//Select
|
||||
public class Request_SelectUniqueKey
|
||||
{
|
||||
public string Identity { get; set; } = string.Empty;
|
||||
}
|
||||
public class Response_SelectUniqueKy
|
||||
{
|
||||
public string? Identity { get; set; } = string.Empty;
|
||||
public string? Data1 { get; set; } = string.Empty;
|
||||
public string? Data2 { get; set; } = string.Empty;
|
||||
public string? Data3 { get; set; } = string.Empty;
|
||||
public string? Data4 { get; set; } = string.Empty;
|
||||
public string? Data5 { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
//Update
|
||||
public class Request_UpdateUniqueKey
|
||||
{
|
||||
public string Identity { get; set; } = string.Empty;
|
||||
|
||||
public string? Data1 { get; set; } = string.Empty;
|
||||
public string? Data2 { get; set; } = string.Empty;
|
||||
public string? Data3 { get; set; } = string.Empty;
|
||||
public string? Data4 { get; set; } = string.Empty;
|
||||
public string? Data5 { get; set; } = string.Empty;
|
||||
}
|
||||
public class Response_UpdateUniqueKy
|
||||
{
|
||||
public string? Identity { get; set; } = string.Empty;
|
||||
public string? Result { get; set; } = WebApiResult.Success.ToString();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using SystemX.Core.Config.Model;
|
||||
using WebApi.Library.Config;
|
||||
|
||||
namespace WebApi.Project.UniqueKeyApi.Models
|
||||
{
|
||||
public class UniqueKeyApiConfig : WebApiConfig
|
||||
{
|
||||
[JsonPropertyName("Socket")]
|
||||
public Server Socket { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user