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