portfolio/service/validate/validateUser.go
2024-05-16 17:36:44 +02:00

14 lines
169 B
Go

package validate
import (
"portfolio/database/ent"
)
func UserIsValid(u *ent.User) bool {
if len(u.Name) > 0 &&
len(u.Role) > 0 {
return true
}
return false
}