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.
 
 
 
 
 

44 lines
1.4 KiB

using System;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model.Warroom.Config
{
/// <summary>
/// 基本資料通用類別
/// </summary>
public class CommonDto
{
/// <summary>
/// 建立人員
/// </summary>
[Column(Name = "create_user"), JsonPropertyName("create_user"), Required]
public string CreateUser { get; set; } = "Admin";
/// <summary>
/// 建立時間
/// </summary>
[Column(Name = "create_time"), JsonPropertyName("create_time")]
public DateTime CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// 更新人員
/// </summary>
[Column(Name = "update_user"), JsonPropertyName("update_user")]
public string UpdateUser { get; set; } = "Admin";
/// <summary>
/// 更新時間
/// </summary>
[Column(Name = "update_time"), JsonPropertyName("update_time")]
public DateTime UpdateTime { get; set; } = DateTime.Now;
/// <summary>
/// 資料狀態
/// </summary>
/// <value>
/// 0 = Insert <br/>
/// 1 = Update <br/>
/// 2 = Disable <br/>
/// 3 = Remove <br/>
/// </value>
[Column(Name = "status"), JsonPropertyName("status")]
public int Status { get; set; } = 0;
}
}