public async Task <ResultPagedList <LoggerInfoDetailsResponseDto> > GetList([FromBody] LoggerListPagedRequestDto dto) { //验证请求数据合法性 var result = dto.Valid(); if (!result.Success) { return(ResultPagedList <LoggerInfoDetailsResponseDto> .ReFailure(result)); } var logList = await _loggingRepository.GetList(dto); var logings = Mapper.Map <IList <LoggerInfoDetailsResponseDto> >(logList.Loggings); return(ResultPagedList <LoggerInfoDetailsResponseDto> .ReSuccess(logings, logList.TotalCount)); }