Exemple #1
0
        public async Task <IActionResult> GetLogsAsync(String userName, Int32 loglevel, Int32 pageIndex, Int32 pageSize)
        {
            Check.IfNullOrZero(userName, true);
            var result = await _loggerServices.GetLogsAsync(userName, loglevel, pageIndex, pageSize);

            return(Json(new ResponsePaging <IList <LogDto> >
            {
                IsSuccess = true,
                Message = "获取日志列表成功",
                Model = result.Models,
                TotalCount = result.TotalCount,
            }));
        }