102 lines
2.7 KiB
C#
102 lines
2.7 KiB
C#
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WGShare.Domain.Enums;
|
|
using Yitter.IdGenerator;
|
|
|
|
namespace WGShare.Domain.Entities
|
|
{
|
|
/// <summary>
|
|
/// 会议室在会记录
|
|
///</summary>
|
|
[SugarTable("meeting_record")]
|
|
public class MeetingRecord
|
|
{
|
|
/// <summary>
|
|
///
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 事件类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "event_type")]
|
|
public EventType EventType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 客户端序列号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "client_seq")]
|
|
public long clientSeq { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 发生Unix时间戳
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "ts")]
|
|
public long ts { get; set; }
|
|
/// <summary>
|
|
/// 用户ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "uid")]
|
|
public string uid { get; set; }
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "create_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 频道号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "channel_name")]
|
|
public string channelName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 客户端类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "platform")]
|
|
public PlatformType platform { get; set; }
|
|
|
|
/// <summary>
|
|
/// 离开原因
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "leave_reason")]
|
|
public LeaveReasonEnum reason { get; set; }
|
|
|
|
/// <summary>
|
|
/// 在会时长
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "duration")]
|
|
public int duration { get; set; }
|
|
|
|
/// <summary>
|
|
/// 字符串类型 用户id(声网返回)
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "account")]
|
|
public string account { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 用户名称
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public string userName { get; set; }
|
|
/// <summary>
|
|
/// 用户账号
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public string UserAccount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 用户角色名称
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public string RoleName { get; set; }
|
|
}
|
|
}
|