90 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			90 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C#
		
	
	
//--------------------------------------------------------------------
 | 
						|
//     此代码由T4模板自动生成  byzhouhang 20210918
 | 
						|
//	   生成时间 2023-07-04 16:10:46 
 | 
						|
//     对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
 | 
						|
//--------------------------------------------------------------------
 | 
						|
using IRaCIS.Core.Domain.Share;
 | 
						|
using Newtonsoft.Json;
 | 
						|
namespace IRaCIS.Core.Application.ViewModel
 | 
						|
{
 | 
						|
    /// <summary> UserLogView  列表视图模型 </summary>
 | 
						|
    public class UserLogView
 | 
						|
    {
 | 
						|
        public Guid? Id { get; set; }
 | 
						|
        public string IP { get; set; }
 | 
						|
 | 
						|
        public string ActionUserType { get; set; }
 | 
						|
        public UserOptType OptType { get; set; }
 | 
						|
 | 
						|
        public string? ActionUserName { get; set; }
 | 
						|
 | 
						|
        //public string ActionUserRoleShortName { get; set; }
 | 
						|
 | 
						|
        public DateTime CreateTime { get; set; }
 | 
						|
        public Guid CreateUserId { get; set; }
 | 
						|
 | 
						|
        public string TargetIdentityUserName { get; set; }
 | 
						|
 | 
						|
        public bool IsLoginUncommonly { get; set; }
 | 
						|
 | 
						|
        public bool IsIgnoreUncommonly { get; set; }
 | 
						|
 | 
						|
        public string JsonObj { get; set; }
 | 
						|
 | 
						|
        public string IPRegion { get; set; }
 | 
						|
 | 
						|
        [JsonIgnore]
 | 
						|
        public UserLogJsonObj UserObj => JsonObj.IsNotNullOrEmpty() ? JsonConvert.DeserializeObject<UserLogJsonObj>(JsonObj) :new UserLogJsonObj();
 | 
						|
    }
 | 
						|
 | 
						|
    public class SendMfaCommand
 | 
						|
    {
 | 
						|
        public Guid IdentityUserId { get; set; }
 | 
						|
 | 
						|
        public UserMFAType MFAType { get; set; } = UserMFAType.Login;
 | 
						|
    }
 | 
						|
 | 
						|
    public class SetIsIgnoreUncommonlyInDto
 | 
						|
    {
 | 
						|
        public Guid Id { get; set; }
 | 
						|
 | 
						|
        public bool IsIgnoreUncommonly { get; set; }
 | 
						|
    }
 | 
						|
 | 
						|
    ///<summary>UserLogQuery  列表查询参数模型</summary>
 | 
						|
    public class UserLogQuery : PageInput
 | 
						|
    {
 | 
						|
        public Guid? TrialId { get; set; }
 | 
						|
 | 
						|
        public List<UserOptType>?  OptTypeList { get; set; }
 | 
						|
 | 
						|
 | 
						|
        public string? IP { get; set; }
 | 
						|
 | 
						|
        public string? LoginFaildName { get; set; }
 | 
						|
 | 
						|
 | 
						|
        public string? LoginUserName { get; set; }
 | 
						|
 | 
						|
        public DateTime? BeginDate { get; set; }
 | 
						|
 | 
						|
        public DateTime? EndDate { get; set; }
 | 
						|
 | 
						|
        public string? LoginUserType { get; set; }
 | 
						|
 | 
						|
        public Guid? UserTypeId { get; set; }
 | 
						|
 | 
						|
        public Guid? IdentityUserId { get; set; }
 | 
						|
 | 
						|
        public Guid? TargetIdentityUserId { get; set; }
 | 
						|
 | 
						|
        public bool? IsLoginUncommonly { get; set; }
 | 
						|
 | 
						|
    }
 | 
						|
 | 
						|
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
 |