示例#1
0
 public async Task <Result <PagedModel <LoginRecordDto> > > GetRecordPageAsync([Required][FromQuery] LoginRecordQueryPagedCommand command, CancellationToken cancellationToken = default)
 {
     return(await loginAppService.GetRecordPageAsync(command, cancellationToken));
 }
示例#2
0
        /// <summary>
        /// 获取所有登录记录分页
        /// </summary>
        /// <param name="command"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        public async Task <Result <PagedModel <LoginRecordDto> > > GetRecordPageAsync(LoginRecordQueryPagedCommand command, CancellationToken cancellationToken = default)
        {
            var res = await loginRecordService.GetPageListAsync(command, cancellationToken);

            return(RestFull.Success(data: res));
        }