feat (reference): done

This commit is contained in:
dpurbosakti
2025-10-15 15:49:05 +07:00
parent 3e4ce7d1bf
commit 7871998c98
16 changed files with 424 additions and 3 deletions

No files matched your search

@@ -0,0 +1,22 @@
package reference
type ReadListDto struct {
ReferenceType ReferenceType `json:"-"`
PathValue1 string `json:"-"`
PathValue2 string `json:"-"`
PathValue3 string `json:"-"`
}
type ReferenceType string
const (
RTProvince ReferenceType = "province"
RTDistrict ReferenceType = "district"
RTCities ReferenceType = "cities"
RTDiagnose ReferenceType = "diagnose"
RTDiagnosePrb ReferenceType = "diagnose-prb"
RTMedicinePrb ReferenceType = "medicine-prb"
RTUnit ReferenceType = "unit"
RTHealthcare ReferenceType = "healthcare"
RTDoctor ReferenceType = "doctor"
)
@@ -0,0 +1,23 @@
package reference
type Response struct {
MetaData MetaData `json:"metaData"`
Response *CodeNameList `json:"response"` // pointer to handle possible null
}
type MetaData struct {
Code string `json:"code"`
Message string `json:"message"`
}
type CodeNameList struct {
List []CodeName `json:"list,omitempty"`
Diagnosa []CodeName `json:"diagnosa,omitempty"`
Poli []CodeName `json:"poli,omitempty"`
Faskes []CodeName `json:"faskes,omitempty"`
}
type CodeName struct {
Kode string `json:"kode"`
Nama string `json:"nama"`
}