old_flsystem/应用/MessageSupervises/Config.cs

165 lines
4.5 KiB
C#
Raw Permalink 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 Api.Framework.Enums;
using Api.Framework.SDK;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UI.Framework.Entitys;
namespace MessageSupervises
{
[Config(Name = "插件-智能拦截-配置")]
public class Config
{
#region
/// <summary>
/// 发送频率检测开关
/// </summary>
public bool FrequencySwitch { get; set; }
/// <summary>
/// 是否开启云黑名单
/// </summary>
public bool FrequencyCloudBlack { get; set; }
/// <summary>
/// 消息时间间隔
/// </summary>
public int FrequencyIntervalSecs { get; set; }
/// <summary>
/// 发送消息数量
/// </summary>
public int FrequencyIntervalSendNum { get; set; }
/// <summary>
/// 拉入黑名单提示
/// </summary>
public string FrequencyDetentionTip { get; set; }
/// <summary>
/// 禁止私聊
/// </summary>
public bool ProhibitSL { get; set; }
/// <summary>
/// 禁止群聊
/// </summary>
public bool ProhibitQL { get; set; }
/// <summary>
/// 允许回复所有群开关
/// </summary>
public bool WhiteListSwitch { get; set; }
/// <summary>
/// 群应答类型(true为第一个,false为第二个)
/// </summary>
public bool GroupResponseType { get; set; }
/// <summary>
/// 群白名单 - 2020年7月30日改成回复不回复用户选择设置的群名单
/// </summary>
public string[] GroupWhiteList { get;set;}
/// <summary>
/// 屏蔽昵称
/// </summary>
public bool ProhibitNick { get; set; }
/// <summary>
/// 屏蔽昵称名单
/// </summary>
public string[] ProhibitNickList { get; set; }
/// <summary>
/// 屏蔽微信id
/// </summary>
public bool ProhibitWxid { get; set; }
/// <summary>
/// 屏蔽微信id名单
/// </summary>
public string[] ProhibitWxidList { get; set; }
#endregion
#region
/// <summary>
/// 添加时间
/// </summary>
public int auto_black_day { get; set; }
/// <summary>
/// 已完成订单数
/// </summary>
public int auto_black_order { get; set; }
/// <summary>
/// 聊天次数
/// </summary>
public int auto_black_chat { get; set; }
/// <summary>
/// 自动拉黑内容
/// </summary>
public string auto_black_message { get; set; }
///// <summary>
///// 钉钉报警接口
///// </summary>
//public string black_chat_dingding { get; set; }
///// <summary>
///// 钉钉Token
///// </summary>
//public string black_chat_dingding_token { get; set; }
/// <summary>
/// 钉钉群通知
/// </summary>
public string notice_robotname { get; set; }
public bool auth_black_swich { get; set; }
public bool auth_dingding_swich { get; set; }
public bool auth_delete_black { get; set; }
public string WhiteListWords { get; set; }
#endregion
public Config()
{
this.GroupResponseType = true;
this.WhiteListWords = string.Empty;
this.FrequencyCloudBlack = false;
this.auth_dingding_swich = true;
this.auto_black_day = 15;
this.auto_black_order = 0;
this.auto_black_chat = 15;
this.auto_black_message = "";
this.notice_robotname = "请选择(钉钉 / 微信群机器人API名称";
this.FrequencySwitch = true;
this.FrequencyIntervalSecs = 10;
this.FrequencyIntervalSendNum = 8;
this.ProhibitSL = false;
this.ProhibitQL = false;
this.FrequencyDetentionTip = @"一一一一发 言 过 快一一一一
由于您的发言过快,已被列入黑名单,请联系管理员解除!";
this.WhiteListSwitch = true;
this.GroupWhiteList = new string[] { };
this.ProhibitNick = false;
this.ProhibitNickList = new string[] { };
this.ProhibitWxid = false;
this.ProhibitWxidList = new string[] { };
}
}
}