case-admin-api/utils/stringToInt.go
2025-03-07 17:23:50 +08:00

22 lines
450 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package utils
// DoctorTitleToInt 医生职称0:未知 1:主任医师 2:主任中医师 3:副主任医师 4:副主任中医师 5:主治医师 6:住院医师)
func DoctorTitleToInt(s string) int {
switch s {
case "主任医师":
return 1
case "主任中医师":
return 2
case "副主任医师":
return 3
case "副主任中医师":
return 4
case "主治医师":
return 5
case "住院医师":
return 6
default:
return 0
}
}