feat 生日券功能,自动上传消费数据,提醒访客到期
This commit is contained in:
@@ -4,13 +4,13 @@ namespace Dlhis.Canteen.Api;
|
||||
|
||||
[RequestResultHandler]
|
||||
[EnableRemoteClient(Name = "canteen-service", BaseUrl = "${InternalRequest:CanteenRequestUrl}")]
|
||||
public interface ITicketApi
|
||||
public interface IVoucherApi
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建券
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
[Post("/api/tickets/{type}/create")]
|
||||
Task CreateAsync(string type);
|
||||
/// <returns></returns>s
|
||||
[Post("/api/vouchers/birthday/create")]
|
||||
Task CreateAsync(VoucherByBirthdayRequest request);
|
||||
}
|
||||
8
Src/Dlhis.Canteen.Api/VoucherByBirthdayRequest.cs
Normal file
8
Src/Dlhis.Canteen.Api/VoucherByBirthdayRequest.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Dlhis.Canteen.Api;
|
||||
|
||||
public class VoucherByBirthdayRequest
|
||||
{
|
||||
public DateTime Begin { get; set; }
|
||||
public DateTime End { get; set; }
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user