From 6f125e485b4d2de38bed4c406a5908c58f247ab7 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Fri, 3 Jul 2026 17:29:33 +0900 Subject: [PATCH] fix: Contract CreateAsync signature correction Co-Authored-By: Claude Haiku 4.5 --- src/TaxBaik.Web/Endpoints/Contract/AllEndpoints.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TaxBaik.Web/Endpoints/Contract/AllEndpoints.cs b/src/TaxBaik.Web/Endpoints/Contract/AllEndpoints.cs index f4e080d..e9d5a6a 100644 --- a/src/TaxBaik.Web/Endpoints/Contract/AllEndpoints.cs +++ b/src/TaxBaik.Web/Endpoints/Contract/AllEndpoints.cs @@ -3,7 +3,7 @@ using TaxBaik.Application.Services; namespace TaxBaik.Web.Endpoints.Contract; -public class CreateRequest { public int ClientId { get; set; } public string? ContractNumber { get; set; } public string? ServiceType { get; set; } public DateTime StartDate { get; set; } public DateTime? EndDate { get; set; } public decimal MonthlyAmount { get; set; } } +public class CreateRequest { public int ClientId { get; set; } public string? ContractNumber { get; set; } public string? ServiceType { get; set; } public DateTime StartDate { get; set; } public decimal? MonthlyFee { get; set; } public decimal? TotalAmount { get; set; } } public class ListResp { public List Data { get; set; } = []; } public class IdResp { public int Id { get; set; } } public class MRRResp { public decimal MRR { get; set; } } @@ -16,7 +16,7 @@ public class CreateEp : Endpoint public override void Configure() { Post("/api/contract"); Policies("Bearer"); } public override async Task HandleAsync(CreateRequest r, CancellationToken ct) { - var id = await _svc.CreateAsync(r.ClientId, r.ContractNumber, r.ServiceType, r.StartDate, r.EndDate, r.MonthlyAmount); + var id = await _svc.CreateAsync(r.ClientId, r.ContractNumber, r.ServiceType, r.StartDate, r.MonthlyFee, r.TotalAmount); await SendAsync(new IdResp { Id = id }, 201, cancellation: ct); } }