速率限制可根据ip查看对应日志
This commit is contained in:
parent
1c08c837e6
commit
38eda262d6
@ -17,7 +17,10 @@ public class IpRateLimitLogService : BaseService<IpRateLimitLog>, IIpRateLimitLo
|
||||
public async Task<PagedInfo<IpRateLimitLog>> SelectIpRateLimitLogPageAsync(IpRateLimitLog ipRateLimitLog, PagerInfo pager)
|
||||
{
|
||||
RefAsync<int> total = 0;
|
||||
var exp = Expressionable.Create<IpRateLimitLog>();
|
||||
exp.AndIF(ipRateLimitLog.ClientIp.IsNotEmpty(), it => it.ClientIp == ipRateLimitLog.ClientIp);
|
||||
var res = await Queryable()
|
||||
.Where(exp.ToExpression())
|
||||
.ToPageListAsync(pager.PageNum, pager.PageSize, total);
|
||||
var page = new PagedInfo<IpRateLimitLog>
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user