31 lines
821 B
C#
31 lines
821 B
C#
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 生成打印编号并记录
|
|
/// </summary>
|
|
/// <param name="data"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public async Task<ResultInfo> GetCodeAsync(PrintCodeC2SDto data)
|
|
{
|
|
return await _printService.GetCodeAsync(data);
|
|
}
|
|
}
|
|
}
|