Esempio n. 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));
        }
Esempio n. 2
0
        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));
        }