42 lines
1.1 KiB
C#

using LMS.Repository.MJPackage;
using System.ComponentModel.DataAnnotations;
namespace LMS.Repository.DB
{
public class MJApiTasks
{
[Key]
public string TaskId { get; set; }
public string Token { get; set; }
public long TokenId { get; set; }
public DateTime StartTime { get; set; }
public DateTime? EndTime { get; set; }
public string Status { get; set; }
public string ThirdPartyTaskId { get; set; } // 第三方任务ID
public string? Properties { get; set; }
}
public class MJApiTaskCollection : MJApiTasks
{
public long TokenId { get; set; }
public string Token { get; set; }
}
public class MJTaskStatus
{
public const string NOT_START = "NOT_START";
public const string SUBMITTED = "SUBMITTED";
public const string IN_PROGRESS = "IN_PROGRESS";
public const string FAILURE = "FAILURE";
public const string SUCCESS = "SUCCESS";
public const string MODAL = "MODAL";
public const string CANCEL = "CANCEL";
}
}