using learun.iapplication; using learun.util; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace learun.webapi.Controllers { /// /// 版 本 Learun-ADMS-Core 力软管理后台 /// Copyright (c) 2019-present 力软信息技术(苏州)有限公司 /// 创建人:tobin /// 日 期:2020.04.21 /// 描 述:自定义表单接口 /// public class CustmerController : MvcControllerBase { private readonly FormSchemeIBLL _formSchemeIBLL; /// /// 初始化方法 /// /// public CustmerController(FormSchemeIBLL formSchemeIBLL) { _formSchemeIBLL = formSchemeIBLL; } /// /// 获取自定义表单功能分页数据 /// /// 分页参数 /// 表单主键 /// 查询参数 /// [HttpGet] private async Task PageList(Pagination pagination,string formId,string queryJson) { var data =await _formSchemeIBLL.GetFormPageList(formId, pagination, queryJson,""); var jsonData = new { rows = data, pagination.total, pagination.page, pagination.records }; return Success(jsonData); } } }