|
@@ -134,9 +134,17 @@ public class SnapshotController : BaseController
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpGet("bulletions")]
|
|
[HttpGet("bulletions")]
|
|
[AllowAnonymous]
|
|
[AllowAnonymous]
|
|
- public virtual async Task<IReadOnlyList<BulletinOutDto>> QueryBulletinsAsync([FromQuery] BulletinInDto dto)
|
|
|
|
|
|
+ public async Task<IReadOnlyList<BulletinOutDto>> QueryBulletinsAsync([FromQuery] BulletinInDto dto)
|
|
=> await _snapshotApplication.GetBulletinsAsync(dto, HttpContext.RequestAborted);
|
|
=> await _snapshotApplication.GetBulletinsAsync(dto, HttpContext.RequestAborted);
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 获取小程序首页弹窗
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpGet("bulletions/popup")]
|
|
|
|
+ public async Task<BulletinOutDto> GetBulletionPopupAsync()
|
|
|
|
+ => await _snapshotApplication.GetBulletionPopupAsync(HttpContext.RequestAborted);
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 公告详情
|
|
/// 公告详情
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -144,7 +152,7 @@ public class SnapshotController : BaseController
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpGet("bulletions/{id}")]
|
|
[HttpGet("bulletions/{id}")]
|
|
[AllowAnonymous]
|
|
[AllowAnonymous]
|
|
- public virtual async Task<BulletinOutDto> QueryBulletionsDetailAsync(string id)
|
|
|
|
|
|
+ public async Task<BulletinOutDto> QueryBulletionsDetailAsync(string id)
|
|
=> await _snapshotApplication.GetBulletinsDetailAsync(id);
|
|
=> await _snapshotApplication.GetBulletinsDetailAsync(id);
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -153,7 +161,7 @@ public class SnapshotController : BaseController
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[AllowAnonymous]
|
|
[AllowAnonymous]
|
|
[HttpGet("user")]
|
|
[HttpGet("user")]
|
|
- public virtual async Task<SnapshotUserInfoOutDto> GetUserInfo()
|
|
|
|
|
|
+ public async Task<SnapshotUserInfoOutDto> GetUserInfo()
|
|
=> await _snapshotApplication.GetSnapshotUserInfoAsync();
|
|
=> await _snapshotApplication.GetSnapshotUserInfoAsync();
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -162,7 +170,7 @@ public class SnapshotController : BaseController
|
|
/// <param name="dto"></param>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpGet("order")]
|
|
[HttpGet("order")]
|
|
- public virtual async Task<IList<OrderOutDto>> QueryOrderListAsync([FromQuery] OrderInDto dto)
|
|
|
|
|
|
+ public async Task<IList<OrderOutDto>> QueryOrderListAsync([FromQuery] OrderInDto dto)
|
|
=> await _snapshotApplication.GetSnapshotOrdersAsync(dto, HttpContext.RequestAborted);
|
|
=> await _snapshotApplication.GetSnapshotOrdersAsync(dto, HttpContext.RequestAborted);
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -171,7 +179,7 @@ public class SnapshotController : BaseController
|
|
/// <param name="id"></param>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpGet("order/{id}")]
|
|
[HttpGet("order/{id}")]
|
|
- public virtual async Task<OrderPublishDetailOutDto> QueryOrderListAsync([FromQuery] string id)
|
|
|
|
|
|
+ public async Task<OrderPublishDetailOutDto> QueryOrderListAsync([FromQuery] string id)
|
|
=> await _snapshotApplication.GetSnapshotOrderDetailAsync(id, HttpContext.RequestAborted);
|
|
=> await _snapshotApplication.GetSnapshotOrderDetailAsync(id, HttpContext.RequestAborted);
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -180,7 +188,7 @@ public class SnapshotController : BaseController
|
|
/// <param name="dto"></param>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpGet("redpack")]
|
|
[HttpGet("redpack")]
|
|
- public virtual async Task<IReadOnlyList<RedPackDateOutDto>> QueryRedPackDateAsync([FromQuery] RedPackDateInDto dto)
|
|
|
|
|
|
+ public async Task<IReadOnlyList<RedPackDateOutDto>> QueryRedPackDateAsync([FromQuery] RedPackDateInDto dto)
|
|
=> await _snapshotApplication.GetRedPackDateAsync(dto, HttpContext.RequestAborted);
|
|
=> await _snapshotApplication.GetRedPackDateAsync(dto, HttpContext.RequestAborted);
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -197,7 +205,7 @@ public class SnapshotController : BaseController
|
|
/// <param name="dto"></param>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpGet("redpack/month")]
|
|
[HttpGet("redpack/month")]
|
|
- public virtual async Task<IList<RedPackOutDto>> QueryRedPackDateAsync([FromQuery] RedPacksInDto dto)
|
|
|
|
|
|
+ public async Task<IList<RedPackOutDto>> QueryRedPackDateAsync([FromQuery] RedPacksInDto dto)
|
|
=> await _snapshotApplication.GetRedPacksAsync(dto, HttpContext.RequestAborted);
|
|
=> await _snapshotApplication.GetRedPacksAsync(dto, HttpContext.RequestAborted);
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|