16 lines
413 B
C#
16 lines
413 B
C#
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);
|
|
} |