using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cms.Core.Entity
{
public class ZhiboSystemDiscussion
{
[Key]
public int Id { get; set; }
///
/// 0、私聊;1、公开;3、删除;
///
public int Type { get; set; }
///
/// 违法类型
///
public Illegaltype Illegaltype { get; set; }
///
/// 消息类型
///
public Msgtype Msgtype { get; set; }
///
/// 内容
///
public string? Msg { get; set; }
///
/// 时间
///
public DateTime Msgtime { get; set; }
///
/// 课程ID
///
public int Scheduleid { get; set; }
///
/// 平台ID
///
public string? Appid { get; set; }
///
/// 用户user
///
public string? Appuserid { get; set; }
///
/// 用户信息
///
public string? Userinfo { get; set; }
///
/// 用户类型,0、普通用户,1、分析师等管理者
///
public Usertype Usertype { get; set; }
public string? Ip { get; set; }
public int Toid { get; set; }
public string? Touserinfo { get; set; }
public string? Toappid { get; set; }
public string? Toappuserid { get; set; }
public int Tomsgtype { get; set; }
public string? Tomsg { get; set; }
public int Deptid { get; set; }
public int Eid { get; set; }
public int Roomid { get; set; }
}
public enum Usertype
{
[Description("机器人")]
机器人 = -1,
[Description("普通用户")]
普通用户 = 0,
[Description("管理员")]
管理员 = 1,
}
public enum Msgtype
{
[Description("文字")]
文字 = 0,
[Description("图片")]
图片 = 1,
[Description("礼物")]
礼物 = 2,
[Description("链接")]
链接 = 3,
//高级礼物 = 4,
[Description("购物车")]
购物车 = 5,
}
public enum MsgtypeMid
{
文字 = 0,
图片 = 1,
链接 = 3,
}
public enum Type
{
未审核 = 0,
已审核 = 1,
黑名单 = 2,
删除 = 3,
}
public enum TypeMin
{
未审核 = 0,
已审核 = 1,
}
public enum Illegaltype
{
正常 = 0,
用户黑名单 = 1,
IP黑色单 = 2,
敏感词 = 3,
}
}