fix insert daftar jadwal dokter
This commit is contained in:
13
docs/utils/utils.go
Normal file
13
docs/utils/utils.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package utils
|
||||
|
||||
// Function to convert Kode to ID
|
||||
func KodeToIDConverter(kode string, kodeDokter map[string]int) int {
|
||||
id := kodeDokter[kode]
|
||||
return id
|
||||
}
|
||||
|
||||
// Convert Hfis Code to ID Satu Data
|
||||
func HfisCodeToIDConverter(kode int, kodeDokter map[int]string) string {
|
||||
id := kodeDokter[kode]
|
||||
return id
|
||||
}
|
||||
Reference in New Issue
Block a user