Use CPONE user name for HIS LoginBuat

This commit is contained in:
2026-09-25 22:09:05 +07:00
parent 20ec75fbcf
commit 0d2044926e
22 changed files with 127 additions and 47 deletions

View File

@@ -128,8 +128,12 @@ func validateAddLabServices(payload map[string]any) (repository.AddLabServicesPa
channel = "CPONE"
}
channel = strings.ToUpper(strings.TrimSpace(channel))
loginBuat, message := requiredLoginBuat(payload)
if message != "" {
return repository.AddLabServicesParams{}, message
}
return repository.AddLabServicesParams{Layanan: services, Channel: channel}, ""
return repository.AddLabServicesParams{Layanan: services, Channel: channel, LoginBuat: loginBuat}, ""
}
func requiredNestedString(item map[string]any, key string, index int, maxLength int, requiredMessage string) (string, string) {