You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
680 B

using System;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Mirle.Component.API.WarehouseExecutionSystem.Models
{
/// <summary>
/// 通用訊息類別
/// </summary>
public class CommonMessage
{
/// <summary>
/// 時間戳記
/// </summary>
[Required, JsonPropertyName("timetick"), JsonPropertyOrder(1)]
public DateTime Timetick { get; set; }
/// <summary>
/// 交易名稱
/// </summary>
[Required, StringLength(5), JsonPropertyName("transaction_name"), JsonPropertyOrder(2)]
public string TransactionName { get; set; }
}
}