using Learun.Application.Base.SystemModule; using Nancy; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Learun.Application.WebApi.Modules { /// /// 版 本 Learun-ADMS V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2018 北京泉江科技有限公司 /// 创建人:数字化智慧校园-框架开发组 /// 日 期:2018.01.04 /// 描 述:编码规则 /// public class CodeRuleApi: BaseApi { /// /// 注册接口 /// public CodeRuleApi() : base("/learun/adms/coderule") { Get["/code"] = GetEnCode;// 获取数据字典详细列表 } private CodeRuleIBLL codeRuleIBLL = new CodeRuleBLL(); /// /// 获取数据字典详细列表 /// /// /// private Response GetEnCode(dynamic _) { string req = this.GetReqData();// 获取模板请求数据 var data = codeRuleIBLL.GetBillCode(req); return SuccessString(data); } } }