update structure and bridging bpjs
This commit is contained in:
7
models/config/config.go
Normal file
7
models/config/config.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package config
|
||||
|
||||
type ConfigBpjs struct {
|
||||
Cons_id string
|
||||
Secret_key string
|
||||
User_key string
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package models
|
||||
package dokter
|
||||
|
||||
type DaftarSubspesialis struct {
|
||||
ID int `json:"id"`
|
||||
23
models/jadwal_dokter/jadwal_dokter.go
Normal file
23
models/jadwal_dokter/jadwal_dokter.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package jadwal_dokter
|
||||
|
||||
type JadwalDokter struct {
|
||||
Response struct {
|
||||
List []ListDokter `json:"list"`
|
||||
} `json:"response"`
|
||||
MetaData struct {
|
||||
} `json:"metadata"`
|
||||
}
|
||||
|
||||
type ListDokter struct {
|
||||
KodeSubspesialis string `json:"kodesubspesialis"`
|
||||
Hari int `json:"hari"`
|
||||
KapasitasPasien int `json:"kapasitaspasien"`
|
||||
Libur int `json:"libur"`
|
||||
NamaHari string `json:"namahari"`
|
||||
Jadwal string `json:"jadwal"`
|
||||
NamaSubspesialis string `json:"namasubspesialis"`
|
||||
NamaDokter string `json:"namadokter"`
|
||||
KodePoli string `json:"kodepoli"`
|
||||
NamaPoli string `json:"namapoli"`
|
||||
KodeDokter int `json:"kodedokter"`
|
||||
}
|
||||
Reference in New Issue
Block a user