barumongo
This commit is contained in:
@@ -3,6 +3,7 @@ package satu_data
|
||||
type PractitionerGetData struct {
|
||||
ID string `gorm:"column:id" json:"id"`
|
||||
NIP string `gorm:"column:nip" json:"nip"`
|
||||
JenisKelamin string `gorm:"column:Jenis_kelamin" json:"Jenis_kelamin"`
|
||||
GelarDepan string `gorm:"column:gelardepan" json:"gelardepan"`
|
||||
NamaLengkap string `gorm:"column:Nama_lengkap" json:"Nama_lengkap"`
|
||||
GelarBelakang string `gorm:"column:gelarbelakang" json:"gelarbelakang"`
|
||||
@@ -13,5 +14,6 @@ type PractitionerGetData struct {
|
||||
type DataResponse struct {
|
||||
ID string `gorm:"column:id" json:"id"`
|
||||
NIP string `gorm:"column:nip" json:"nip"`
|
||||
JenisKelamin string `gorm:"column:Jenis_kelamin" json:"Jenis_kelamin"`
|
||||
NamaLengkapFull string `json:"nama_lengkap_full"`
|
||||
}
|
||||
|
||||
27
pkg/models/satu_data/data_wilayah.go
Normal file
27
pkg/models/satu_data/data_wilayah.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package satu_data
|
||||
|
||||
type Desakelurahan struct {
|
||||
ID uint
|
||||
NamaDesa string `gorm:"column:Desa_Kelurahan"`
|
||||
Kecamatan Kecamatan `gorm:"foreignkey:Kecamatan_ID"`
|
||||
Kecamatan_ID uint
|
||||
}
|
||||
|
||||
type Kecamatan struct {
|
||||
ID uint
|
||||
NamaKecamatan string `gorm:"column:Kecamatan"`
|
||||
KabupatenKota KabupatenKota `gorm:"foreignkey:Kabupaten_kota_id"`
|
||||
Kabupaten_kota_ID uint
|
||||
}
|
||||
|
||||
type KabupatenKota struct {
|
||||
ID uint
|
||||
NamaKabupaten string `gorm:"column:Kabupaten_Kota"`
|
||||
Provinsi Provinsi `gorm:"foreignkey:Provinsi_id"`
|
||||
Provinsi_id uint
|
||||
}
|
||||
|
||||
type Provinsi struct {
|
||||
ID uint
|
||||
NamaProvinsi string `gorm:"column:Provinsi"`
|
||||
}
|
||||
Reference in New Issue
Block a user