From 88aba1edb874176a2ad01be06003c9ad1bd402ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=86=9B?= <2357729423@qq.com> Date: Mon, 11 Mar 2024 09:10:03 +0800 Subject: [PATCH] =?UTF-8?q?add=E3=80=90=E8=BD=A8=E8=BF=B9=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E5=AF=B9=E5=A4=96=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BE=9B?= =?UTF-8?q?--=E6=96=B0=E5=A2=9E=E8=BD=A8=E8=BF=B9/=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=BD=A8=E8=BF=B9=E8=AE=A2=E5=8D=95=E3=80=91https://www.tapd.c?= =?UTF-8?q?n/60863849/prong/tasks/view/1160863849001016386?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SJZY.Track.Application.Contract.csproj | 2 +- .../Services/IOrderService.cs | 14 ++++++++++++++ .../Services/ProvideServices/OrderService.cs | 3 ++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/SJZY.Track.Application.Contract/Services/IOrderService.cs diff --git a/src/SJZY.Track.Application.Contract/SJZY.Track.Application.Contract.csproj b/src/SJZY.Track.Application.Contract/SJZY.Track.Application.Contract.csproj index de5d1421..0a863be2 100644 --- a/src/SJZY.Track.Application.Contract/SJZY.Track.Application.Contract.csproj +++ b/src/SJZY.Track.Application.Contract/SJZY.Track.Application.Contract.csproj @@ -4,7 +4,7 @@ net7.0 - 0.0.2 + 1.0.0 diff --git a/src/SJZY.Track.Application.Contract/Services/IOrderService.cs b/src/SJZY.Track.Application.Contract/Services/IOrderService.cs new file mode 100644 index 00000000..eb14b092 --- /dev/null +++ b/src/SJZY.Track.Application.Contract/Services/IOrderService.cs @@ -0,0 +1,14 @@ +using SJZY.Track.Application.Contract.Dtos.ProvideServices; +using Volo.Abp; + +namespace SJZY.Track.Application.Contract.Services; + +public interface IOrderService : IRemoteService +{ + /// + /// 创建订单,订单已存在则视为更新 + /// + /// + /// + Task UpsertAsync(UpsertOrderInput input); +} \ No newline at end of file diff --git a/src/SJZY.Track.Application/Services/ProvideServices/OrderService.cs b/src/SJZY.Track.Application/Services/ProvideServices/OrderService.cs index 1de07174..3d639bb0 100644 --- a/src/SJZY.Track.Application/Services/ProvideServices/OrderService.cs +++ b/src/SJZY.Track.Application/Services/ProvideServices/OrderService.cs @@ -1,4 +1,5 @@ using SJZY.Track.Application.Contract.Dtos.ProvideServices; +using SJZY.Track.Application.Contract.Services; using SJZY.Track.Domain.Aggregates.OrderAggregate; using SJZY.UserCenter.HttpApi.Services; @@ -9,7 +10,7 @@ namespace SJZY.Track.Application.Services.ProvideServices; /// [ApiExplorerSettings(GroupName = "提供接口")] [Route("/ProviderService")] -public class OrderService : ApplicationService +public class OrderService : ApplicationService, IOrderService { private readonly IOrderRepository _orderRepository;