29 lines
643 B
C#
29 lines
643 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HuanMeng.DotNetCore.TextCensor
|
|
{
|
|
/// <summary>
|
|
/// 文本审核接口
|
|
/// </summary>
|
|
public interface ITextCensor
|
|
{
|
|
/// <summary>
|
|
/// 文本审核
|
|
/// </summary>
|
|
/// <param name="text"></param>
|
|
/// <returns></returns>
|
|
bool TextCensor(string text);
|
|
|
|
/// <summary>
|
|
/// 文本审核
|
|
/// </summary>
|
|
/// <param name="text"></param>
|
|
/// <returns></returns>
|
|
Task<bool> TextCensorAsync(string text);
|
|
}
|
|
}
|