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)); }
/// <summary> /// 分页 /// </summary> /// <param name="pageEntity"></param> /// <returns></returns> public IEnumerable <ModelFieldDto> Page(PageEntity pageEntity) { return(_modelFieldService.Page(pageEntity)); }