fix: Contract CreateAsync signature correction
TaxBaik CI/CD / build-and-deploy (push) Successful in 3m1s

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 17:29:33 +09:00
parent 6fdf233976
commit 6f125e485b
@@ -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<object> 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<CreateRequest, IdResp>
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);
}
}