public async Task <PageResponse> FieldPage([FromBody] JObject form) { var req = new SqlServerPageRequest(form); if (!req.ContainsQueryField("ModelNum")) { return(PageResponse.Error("请选择模型")); } return(await _modelFieldService.Page(req)); }
public async Task <PageResponse> Page([FromBody] JObject form) { var req = new SqlServerPageRequest(form, new Dictionary <string, string> { { "Sort", "DESC" } }); if (!req.ContainsQueryField("columnNum")) { return(PageResponse.Error("请选择栏目")); } return(await _service.Page(req)); }