41 lines
1.5 KiB
C#
41 lines
1.5 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Backend.Models
|
|||
|
{
|
|||
|
public enum BackgroundServiceTaskType : byte
|
|||
|
{
|
|||
|
raw_data_archive = 0, //資料歸檔
|
|||
|
data_delivery = 1, //資料派送
|
|||
|
}
|
|||
|
|
|||
|
public class BackgroundServiceTask
|
|||
|
{
|
|||
|
private string complete_at;
|
|||
|
private string created_at;
|
|||
|
private string updated_at;
|
|||
|
public int Id { get; set; }
|
|||
|
public byte Task_type { get; set; }
|
|||
|
public string Target_ip { get; set; }
|
|||
|
public string Target_table { get; set; }
|
|||
|
public string Mode { get; set; }
|
|||
|
public string Target_data { get; set; }
|
|||
|
public string Target_files { get; set; }
|
|||
|
public int Repeat_times { get; set; }
|
|||
|
public byte Is_complete { get; set; }
|
|||
|
public string Complete_at { get { return Convert.ToDateTime(complete_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { complete_at = value; } }
|
|||
|
public string Created_at { get { return Convert.ToDateTime(created_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { created_at = value; } }
|
|||
|
public string Updated_at { get { return Convert.ToDateTime(updated_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { updated_at = value; } }
|
|||
|
}
|
|||
|
|
|||
|
public class FileInfo
|
|||
|
{
|
|||
|
public string Folder { get; set; }
|
|||
|
public string OriginalFileName { get; set; }
|
|||
|
public string FileName { get; set; }
|
|||
|
public string File { get; set; }
|
|||
|
}
|
|||
|
}
|