Browse Source

修复入参错误

qinchaoyue 4 tháng trước cách đây
mục cha
commit
eb8163bdea

+ 1 - 1
src/Hotline.Api/Controllers/Snapshot/SnapshotController.cs

@@ -256,7 +256,7 @@ public class SnapshotController : BaseController
     /// <returns></returns>
     [HttpGet("practitioner")]
     [AllowAnonymous]
-    public async Task<IList<PractitionerItemOutDto>> GetPractitionerDetailAsync(PractitionerItemInDto dto)
+    public async Task<IList<PractitionerItemOutDto>> GetPractitionerDetailAsync([FromQuery]PractitionerItemInDto dto)
         => await _snapshotApplication.GetPractitionerItemsAsync(dto, HttpContext.RequestAborted);
 
     /// <summary>

+ 3 - 1
src/Hotline.Application/Snapshot/ISnapshotApplication.cs

@@ -1,4 +1,5 @@
-using Hotline.Share.Dtos;
+using Hotline.Settings.SystemLogDomain;
+using Hotline.Share.Dtos;
 using Hotline.Share.Dtos.Article;
 using Hotline.Share.Dtos.Snapshot;
 
@@ -187,6 +188,7 @@ public interface ISnapshotApplication
     /// </summary>
     /// <param name="dto"></param>
     /// <returns></returns>
+    [LogToDatabase("ReplyCode")]
     Task SaveGuiderSystemReplyAsync(GuiderSystemInDto dto, CancellationToken cancellationToken);
 
     /// <summary>

+ 1 - 1
src/Hotline/Settings/SystemLogDomain/LoggingInterceptor.cs

@@ -26,5 +26,5 @@ public class LoggingInterceptor : IInterceptor
         {
             Console.WriteLine($"[LOG] Finished: {invocation.Method.Name}");
         }
-}
+    }
 }