feat (reference): done
This commit is contained in:
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user