update 删除所有Xn前缀, 规范了所有分页参数和返回值

This commit is contained in:
2021-05-27 21:07:30 +08:00
parent f612f7e4e9
commit c023f86f6e
34 changed files with 146 additions and 205 deletions

View File

@@ -51,8 +51,8 @@ namespace Ewide.Core.Service.Notice
EF.Functions.Like(u.Content, $"%{input.SearchValue.Trim()}%"))
.Where(input.Type > 0, u => u.Type == input.Type)
.Where(u => u.Status != (int)NoticeStatus.DELETED)
.ToPagedListAsync(input.PageNo, input.PageSize);
return XnPageResult<SysNotice>.PageResult(notices);
.ToPagedListAsync(input.PageIndex, input.PageSize);
return PageDataResult<SysNotice>.PageResult(notices);
}
/// <summary>
@@ -203,8 +203,8 @@ namespace Ewide.Core.Service.Notice
.Where(input.Type > 0, u => u.u.Type == input.Type)
.Where(u => u.u.Status != (int)NoticeStatus.DELETED)
.Select(u => u.u.Adapt<NoticeReceiveOutput>())
.ToPagedListAsync(input.PageNo, input.PageSize);
return XnPageResult<NoticeReceiveOutput>.PageResult(notices);
.ToPagedListAsync(input.PageIndex, input.PageSize);
return PageDataResult<NoticeReceiveOutput>.PageResult(notices);
}
/// <summary>