53 lines
1.7 KiB
C#
53 lines
1.7 KiB
C#
using Api.Framework.SDK;
|
||
using Api.Framework.Tools;
|
||
using SqlSugar;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace AutoAnswer.Entitys
|
||
{
|
||
|
||
/// <summary>
|
||
/// 用户自定义回复库
|
||
/// </summary>
|
||
public class fl_plugin_autoanswer_definedlib : base_model
|
||
{
|
||
/// <summary>
|
||
/// 平台类型
|
||
/// </summary>
|
||
public string chat_type { get; set; }
|
||
/// <summary>
|
||
/// 关键词
|
||
/// </summary>
|
||
[SugarColumn(Length = 10000)]//设置字段为长文本
|
||
public string antistop { get; set; }
|
||
/// <summary>
|
||
/// 匹配模式 0是为完全匹配,false为模糊 and 正则表达式 【这里用int类型,主要是因为dev中的Gridcontrol bool好像不支持 修改界面显示】
|
||
/// </summary>
|
||
public int match_pattern { get; set; }
|
||
|
||
/// <summary>
|
||
/// 指定回复的机器人信息,为空时所有机器人都使用
|
||
/// </summary>
|
||
public string specific_robot_setting_text { get; set; }
|
||
/// <summary>
|
||
/// 回复内容
|
||
/// </summary>
|
||
[SugarColumn(Length = 10000)]//设置字段为长文本
|
||
public string content { get; set; }
|
||
/// <summary>
|
||
/// 是否通知管理员 【这里用int类型,主要是因为dev中的Gridcontrol bool好像不支持 修改界面显示】
|
||
/// </summary>
|
||
public int is_alert_admin { get; set; }
|
||
|
||
public bool CheckChatType(ChatType type)
|
||
{
|
||
return string.IsNullOrWhiteSpace(this.chat_type) ? false : this.chat_type.Split(',').FirstOrDefault(f => ushort.Parse(f) == (ushort)type) != null ? true : false;
|
||
}
|
||
|
||
}
|
||
}
|