fix AsAppointment

This commit is contained in:
2024-10-11 15:12:35 +08:00
parent aeffa95a96
commit e4946d7351
6 changed files with 24 additions and 10 deletions

View File

@@ -40,8 +40,10 @@ public class AppointmentsController : ControllerBase
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpPost("confirm")]
[Transactional]
[IgnoreTenant]
public async Task ConfirmAsync(AppointmentConfirmRequest request)
{
await _appointmentService.ConfirmAsync(request);
@@ -54,9 +56,7 @@ public class AppointmentsController : ControllerBase
/// <returns></returns>
[AllowAnonymous]
[HttpGet("today")]
public async Task<AppointmentDetailResponse> GetTodayByIdNoAsync(
[FromQuery] [StringLength(18, MinimumLength = 18, ErrorMessage = "身份证有误")] [Required(ErrorMessage = "身份证有误")]
string idNo)
public async Task<AppointmentDetailResponse> GetTodayByIdNoAsync(string idNo)
{
return await _appointmentService.GetTodayByIdNoAsync(idNo);
}