OnlineUserModel.cs
894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Rbac.Domain.Shared.Model
{
public class OnlineUserModel
{
public OnlineUserModel()
{
}
public OnlineUserModel(string connnectionId)
{
ConnnectionId = connnectionId;
}
/// <summary>
/// 客户端连接Id
/// </summary>
public string? ConnnectionId { get; }
/// <summary>
/// 用户id
/// </summary>
public Guid? UserId { get; set; }
public string? UserName { get; set; }
public DateTime LoginTime { get; set; }
public string? Ipaddr { get; set; }
public string? LoginLocation { get; set; }
public string? Os { get; set; }
public string? Browser { get; set; }
}
}