feat: add cooperation tariff APIs

This commit is contained in:
2026-08-22 10:14:12 +07:00
parent b9eb934364
commit d183e321e8
7 changed files with 798 additions and 1 deletions

View File

@@ -34,12 +34,18 @@ type PaketRepository interface {
GetPaket(ctx context.Context, id string) (*repository.PaketDetail, error)
}
type TarifKerjasamaRepository interface {
ListTarifKerjasama(ctx context.Context, params repository.TarifKerjasamaListParams) (repository.TarifKerjasamaPage, error)
GetTarifKerjasama(ctx context.Context, id int64, params repository.TarifKerjasamaDetailParams) (*repository.TarifKerjasamaDetail, error)
}
type Handler struct {
layananRepo LayananRepository
labRepo LabRegistrationRepository
patientRepo PatientRepository
labResultRepo LabResultRepository
paketRepo PaketRepository
tarifRepo TarifKerjasamaRepository
}
type CPONERepository interface {
@@ -48,12 +54,13 @@ type CPONERepository interface {
PatientRepository
LabResultRepository
PaketRepository
TarifKerjasamaRepository
}
func NewHandler(repo CPONERepository) Handler {
return Handler{
layananRepo: repo, labRepo: repo, patientRepo: repo,
labResultRepo: repo, paketRepo: repo,
labResultRepo: repo, paketRepo: repo, tarifRepo: repo,
}
}