Initial cloud-services repo - gateway service + pkg modules

This commit is contained in:
Chris Rai
2026-01-30 23:14:52 -05:00
commit fbb820d7b3
1037 changed files with 171318 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package validator
import (
"github.com/go-playground/validator/v10"
)
const (
GEO_LOCATION = "geolocation"
CONNECTED_CAR_FEATURE = "connected_car_feature"
NAV_LOCATION_DATA = "navlocation_data"
ACCEPTED = "ACCEPTED"
DECLINED = "DECLINED"
)
func validateUserConsentName(fl validator.FieldLevel) bool {
s := fl.Field().String()
return s == GEO_LOCATION || s == CONNECTED_CAR_FEATURE || s == NAV_LOCATION_DATA
}