update 删除所有Xn前缀, 规范了所有分页参数和返回值
This commit is contained in:
@@ -40,13 +40,13 @@ namespace Ewide.Core.Service
|
||||
var timers = await _sysTimerRep.DetachedEntities
|
||||
.Where((jobName, u => EF.Functions.Like(u.JobName, $"%{input.JobName.Trim()}%")))
|
||||
.Select(u => u.Adapt<JobInput>())
|
||||
.ToPagedListAsync(input.PageNo, input.PageSize);
|
||||
.ToPagedListAsync(input.PageIndex, input.PageSize);
|
||||
|
||||
timers.Items.ToList().ForEach(u =>
|
||||
{
|
||||
u.DisplayState = jobList.Find(m => m.JobName == u.JobName)?.DisplayState;
|
||||
});
|
||||
return XnPageResult<JobInput>.PageResult(timers);
|
||||
return PageDataResult<JobInput>.PageResult(timers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user