using learun.iapplication; 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 CodeRuleController : MvcControllerBase { private readonly CodeRuleIBLL _codeRuleIBLL; /// /// 初始方法 /// public CodeRuleController(CodeRuleIBLL codeRuleIBLL) { _codeRuleIBLL = codeRuleIBLL; } /// /// 获取编码单号 /// /// 编码 /// [HttpGet] public async Task Code(string code) { var data =await _codeRuleIBLL.GetBillCode(code); return Success(data); } } }