78 lines
2.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.IM
{
/// <summary>
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创建人:研发部
/// 日 期2018.05.31
/// 描 述:最近联系人列表
/// </summary>
[SugarTable(TableName = "LR_IM_CONTACTS")]
public class IMContactsEntity
{
#region
/// <summary>
/// 主键
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_ID", IsPrimaryKey = true)]
public string F_Id { get; set; }
/// <summary>
/// 发送者ID
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_MYUSERID")]
public string F_MyUserId { get; set; }
/// <summary>
/// 接收者ID
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_OTHERUSERID")]
public string F_OtherUserId { get; set; }
/// <summary>
/// 消息内容
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_CONTENT")]
public string F_Content { get; set; }
/// <summary>
/// 创建时间
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_TIME")]
public DateTime? F_Time { get; set; }
/// <summary>
/// 是否已读1 未读 2 已读
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_ISREAD")]
public int? F_IsRead { get; set; }
#endregion
#region
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.F_Id = Guid.NewGuid().ToString();
this.F_Time = DateTime.Now;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.F_Id = keyValue;
this.F_Time = DateTime.Now;
}
#endregion
}
}