Example #1
0
        public async Task <IActionResult> OnGetDetailAsync(string date)
        {
            await Task.CompletedTask;
            var weixinTraceItemList = SenparcTraceHelper.GetAllLogs(date);

            return(Ok(weixinTraceItemList));
        }
Example #2
0
        public async Task OnGetAsync(string date)
        {
            await Task.CompletedTask;

            Date = date;
            WeixinTraceItemList = SenparcTraceHelper.GetAllLogs(date);
        }
Example #3
0
        public IActionResult OnGetList(int pageIndex = 1, int pageSize = 10)
        {
            var dateList = SenparcTraceHelper.GetLogDate();

            return(Ok(new { dateList.Count, pageIndex, List = dateList.Skip((pageIndex - 1) * pageSize) }));
        }
Example #4
0
 public async Task OnGetAsync(string date)
 {
     Date = date;
     WeixinTraceItemList = SenparcTraceHelper.GetAllLogs(date);
 }
Example #5
0
 public async Task OnGetAsync()
 {
     DateList = SenparcTraceHelper.GetLogDate();
 }