109 lines
3.4 KiB
C#
109 lines
3.4 KiB
C#
using SystemX.Core.DB;
|
|
using WebApi.Library.Enums;
|
|
|
|
namespace WebApi.Project.UniqueKeyApi.Models
|
|
{
|
|
#region CPMeta Wbms
|
|
|
|
//Wbms Meta Insert or Update
|
|
public class Request_SetWbmsMeta
|
|
{
|
|
//pk
|
|
public string ProductID { get; set; } = string.Empty;
|
|
//uk
|
|
public string? MacAddress1 { get; set; } = string.Empty;
|
|
public string? MacAddress2 { get; set; } = string.Empty;
|
|
|
|
//value
|
|
public string? Type { get; set; } = string.Empty;
|
|
public string? ProductNo { get; set; } = string.Empty;
|
|
public string? SpareValue { get; set; } = string.Empty;
|
|
|
|
public int ShardID { get; set; } = 1;
|
|
}
|
|
public class Response_SetWbmsMeta
|
|
{
|
|
public string ProductID { get; set; } = string.Empty;
|
|
public string Result { get; set; } = string.Empty;
|
|
public string Message { get; set; } = string.Empty;
|
|
}
|
|
|
|
//Wbms Meta Select
|
|
public class Request_GetWbmsMeta
|
|
{
|
|
public DateOnly? StartDateTime { get; set; }
|
|
public DateOnly? EndDateTime { get; set; }
|
|
public int ShardID { get; set; } = 1;
|
|
}
|
|
public class Request_GetWbmsMetaByProductID
|
|
{
|
|
public string ProductID { get; set; } = string.Empty;
|
|
public int ShardID { get; set; } = 1;
|
|
}
|
|
public class Request_GetWbmsMetaByMacAddress
|
|
{
|
|
public string MacAddress { get; set; } = string.Empty;
|
|
public int ShardID { get; set; } = 1;
|
|
}
|
|
|
|
public class Response_GetWbms
|
|
{
|
|
public List<tWbms> Wbms { get; set; }
|
|
public string Result { get; set; } = string.Empty;
|
|
public string Message { get; set; } = string.Empty;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#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
|
|
}
|