using Learun.Application.Form; using Learun.Util; using Nancy; namespace Learun.Application.WebApi.Modules { /// /// 版 本 Learun-ADMS V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2018 北京泉江科技有限公司 /// 创建人:数字化智慧校园-框架开发组 /// 日 期:2018.03.22 /// 描 述:自定义表单功能 /// public class CustmerFormApi: BaseApi { /// /// 注册接口 /// public CustmerFormApi() : base("/learun/adms/custmer") { Get["/pagelist"] = GetPageList;// 获取数据字典详细列表 } private FormSchemeIBLL formSchemeIBLL = new FormSchemeBLL(); /// /// 获取自定义表单分页数据 /// /// /// private Response GetPageList(dynamic _) { QueryModel parameter = this.GetReqData(); var data = formSchemeIBLL.GetFormPageList(parameter.formId, parameter.pagination, parameter.queryJson); var jsonData = new { rows = data, total = parameter.pagination.total, page = parameter.pagination.page, records = parameter.pagination.records, }; return Success(jsonData); } /// /// 查询条件对象 /// private class QueryModel { public Pagination pagination { get; set; } public string formId { get; set; } public string queryJson { get; set; } } } }