Merge branch 'S02-轨迹中台' of http://192.168.80.50:3000/Dotnet/SJZY.Track.Api into S02-轨迹中台

This commit is contained in:
柳文翔 2024-03-11 09:46:18 +08:00
commit be45223b94
3 changed files with 17 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Version>0.0.2</Version>
<Version>1.0.0</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SJZY.Expand.ABP.Common" Version="7.0.11" />

View File

@ -0,0 +1,14 @@
using SJZY.Track.Application.Contract.Dtos.ProvideServices;
using Volo.Abp;
namespace SJZY.Track.Application.Contract.Services;
public interface IOrderService : IRemoteService
{
/// <summary>
/// 创建订单,订单已存在则视为更新
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
Task<string> UpsertAsync(UpsertOrderInput input);
}

View File

@ -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;
/// </summary>
[ApiExplorerSettings(GroupName = "提供接口")]
[Route("/ProviderService")]
public class OrderService : ApplicationService
public class OrderService : ApplicationService, IOrderService
{
private readonly IOrderRepository _orderRepository;