Client/Gardener.Client.Base/Services/IClientMessageService.cs
(完整代码) 1KB// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
// gitee:https://gitee.com/hgflydream/Gardener
// issues:https://gitee.com/hgflydream/Gardener/issues
// -----------------------------------------------------------------------------
using Microsoft.AspNetCore.Components;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using System;
namespace Gardener.Client.Base.Services
{
/// <summary>
/// 客户端消息服务
/// </summary>
public interface IClientMessageService
{
void Error(string content, double? duration = null, Action? onClose = null);
void Info(string content, double? duration = null, Action? onClose = null);
void Loading(string content, double? duration = null, Action? onClose = null);
void Success(string content, double? duration = null, Action? onClose = null);
void Warning(string content, double? duration = null, Action? onClose = null);
void Warn(string content, double? duration = null, Action? onClose = null);
Task ErrorAsync(string content, double? duration = null, Action? onClose = null);
Task InfoAsync(string content, double? duration = null, Action? onClose = null);
Task LoadingAsync(string content, double? duration = null, Action? onClose = null);
Task SuccessAsync(string content, double? duration = null, Action? onClose = null);
Task WarningAsync(string content, double? duration = null, Action? onClose = null);
Task WarnAsync(string content, double? duration = null, Action? onClose = null);
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
