using Furion.DynamicApiController; using Microsoft.AspNetCore.Mvc; using Nirvana.Common.ApiBase; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace YBDevice.NApi.Application.PrintInfo { public class PrintAppService : IDynamicApiController { private readonly IPrintService _printService; public PrintAppService(IPrintService printService) { _printService = printService; } /// /// 生成打印编号并记录 /// /// /// [HttpPost] public async Task GetCodeAsync(PrintCodeC2SDto data) { return await _printService.GetCodeAsync(data); } /// /// 根据ID获取设备列表 /// /// 打印记录ID /// [QueryParameters] public async Task GetDevCodeListByIdAsync(Guid id) { return await _printService.GetDevCodeListByIdAsync(id); } } }