Beispiel #1
0
        public async Task <JsonResult> GetPushPages(PageParm parm)
        {
            var res = await _pushService.GetPagesAsync(parm);

            return(Json(new { code = 0, msg = "success", count = res.data.TotalItems, data = res.data.Items }));
        }
Beispiel #2
0
        public JsonResult MessageListAsync(PageParm parm)
        {
            var res = _pushService.GetPagesAsync(parm).Result;

            return(Json(new { statusCode = 200, msg = "success", count = res.data?.TotalPages, data = res.data.Items }));
        }