新增速率限制,调整本地文件上传,服务监控IP取本机网络IP,仓储增加方法
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using ZR.Model;
|
||||
using ZR.Service;
|
||||
using ZR.ServiceCore.Model;
|
||||
|
||||
namespace ZR.ServiceCore.Services.IService;
|
||||
|
||||
public interface IIpRateLimitLogService : IBaseService<IpRateLimitLog>
|
||||
{
|
||||
void InsertIpRateLimitLogAsync(IpRateLimitLog ipRateLimitLog);
|
||||
|
||||
Task<PagedInfo<IpRateLimitLog>> SelectIpRateLimitLogPageAsync(IpRateLimitLog ipRateLimitLog, PagerInfo pager);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using ZR.Model;
|
||||
using ZR.Service;
|
||||
using ZR.ServiceCore.Model;
|
||||
|
||||
namespace ZR.ServiceCore.Services.IService;
|
||||
|
||||
public interface IIpRateLimitPolicyService : IBaseService<IpRateLimitPolicy>
|
||||
{
|
||||
Task<PagedInfo<IpRateLimitPolicy>> SelectIpRateLimitPolicyPageAsync(IpRateLimitPolicy ipRateLimitPolicy,
|
||||
PagerInfo pager);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using ZR.Service;
|
||||
using ZR.ServiceCore.Model;
|
||||
|
||||
namespace ZR.ServiceCore.Services.IService;
|
||||
|
||||
public interface IRateLimitRuleService : IBaseService<RateLimitRule>
|
||||
{
|
||||
Task<List<RateLimitRule>> DeleteRateLimitRuleAsync(long id);
|
||||
|
||||
Task<char> ChangeRateLimitRuleFlagAsync(long id);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace ZR.Service.System.IService
|
||||
/// <param name="rootPath"></param>
|
||||
/// <param name="userName"></param>
|
||||
/// <returns>文件对象</returns>
|
||||
Task<SysFile> SaveFileToLocal(string rootPath, string fileName, string fileDir, string userName, IFormFile formFile);
|
||||
Task<SysFile> SaveFileToLocal(string rootPath, string fileName, string fileDir, string userName, IFormFile formFile, string uploadUrl);
|
||||
|
||||
Task<SysFile> SaveFileToAliyun(SysFile file, IFormFile formFile);
|
||||
/// <summary>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
using ZR.Service;
|
||||
using ZR.ServiceCore.Model;
|
||||
|
||||
namespace ZR.ServiceCore.Services.IService;
|
||||
|
||||
public interface ISysLoginLimitService : IBaseService<SysLoginLimit>
|
||||
{
|
||||
Task<bool> AddSysLoginLimitAsync(SysLoginLimit sysLoginLimit);
|
||||
|
||||
Task<bool> RemoveSysLoginLimitAsync(SysLoginLimit sysLoginLimit);
|
||||
}
|
||||
Reference in New Issue
Block a user