public async Task <IActionResult> List(GetPurchasesCommand cmd, int type = 0) { ViewBag.type = type; // cmd.Status = -888; cmd.LinkUrl = $"/user/purchase/list?PageIndex=__id__&PageSize={cmd.PageSize}&type={type}"; var result = await _mediator.Send(cmd, HttpContext.RequestAborted); return(View(result)); }
public async Task <Result> List([FromBody] GetPurchasesCommand cmd) { _logger.LogInformation($"接收到请求{HttpContext.Request.Host}{HttpContext.Request.Path},参数 {JsonConvert.SerializeObject(cmd)}"); cmd.Show = true; cmd.Status = 2; cmd.PageSize = 5; cmd.PageIndex = 1; var result = await _mediator.Send(cmd, HttpContext.RequestAborted); return(result); }
public async Task <IActionResult> ListC(GetPurchasesCommand cmd, int type = 0) { ViewBag.type = type; var user = this.CurrentUser; cmd.LoginUser = user; cmd.CompanyId = user.CompanyId; cmd.Type = type; cmd.LinkUrl = $"/user/Purchase/ListC?PageIndex=__id__&PageSize={cmd.PageSize}&type={type}"; var result = await _mediator.Send(cmd, HttpContext.RequestAborted); return(View(result)); }