feat tickets
This commit is contained in:
13
Src/Dlhis.Canteen.Api/Dlhis.Canteen.Api.csproj
Normal file
13
Src/Dlhis.Canteen.Api/Dlhis.Canteen.Api.csproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Kurisu.RemoteCall" Version="0.4.8" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
16
Src/Dlhis.Canteen.Api/ITicketApi.cs
Normal file
16
Src/Dlhis.Canteen.Api/ITicketApi.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Kurisu.RemoteCall.Attributes;
|
||||
|
||||
namespace Dlhis.Canteen.Api;
|
||||
|
||||
[RequestResultHandler]
|
||||
[EnableRemoteClient(Name = "canteen-service", BaseUrl = "${InternalRequest:CanteenRequestUrl}")]
|
||||
public interface ITicketApi
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建券
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
[Post("/api/tickets/{type}/create")]
|
||||
Task CreateAsync(string type);
|
||||
}
|
||||
Reference in New Issue
Block a user