/* Options: Date: 2026-11-07 03:12:56 Version: 10.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bettor.webhop.biz //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RegisterUserAccount.* //ExcludeTypes: //DefaultImports: */ package dtos import ( ss "github.com/ServiceStack/servicestack-go" "time" ) type Ref struct { Id string `json:"id"` Val string `json:"val"` } type GPSCoordinates struct { Lat float64 `json:"lat,omitempty"` Lng float64 `json:"lng,omitempty"` } type Address struct { Street string `json:"street"` City string `json:"city"` State string `json:"state"` PostalCode string `json:"postalCode"` Country Ref `json:"country"` Gps GPSCoordinates `json:"gps"` Data RecordDictionary[string, string] `json:"data"` } type RecordDictionary[TKey any, TVal any] map[TKey]TVal type RecordList[T any] []T type LoginCredentials struct { Username *string `json:"username,omitempty"` Password *string `json:"password,omitempty"` } type Name struct { First *string `json:"first,omitempty"` Last *string `json:"last,omitempty"` Full *string `json:"full,omitempty"` } type ContactInfo struct { Phone *string `json:"phone,omitempty"` Email *string `json:"email,omitempty"` } type Person struct { Name *Name `json:"name,omitempty"` Address *Address `json:"address,omitempty"` DateOfBirth *time.Time `json:"dateOfBirth,omitempty"` ContactInfo *ContactInfo `json:"contactInfo,omitempty"` } type AvatarImage struct { Base64 *string `json:"base64,omitempty"` Tag *string `json:"tag,omitempty"` } type NewUserDTO struct { ExternalUserId *string `json:"externalUserId,omitempty"` Credentials *LoginCredentials `json:"credentials,omitempty"` Person *Person `json:"person,omitempty"` Roles *RecordList[string] `json:"roles,omitempty"` Avatar *AvatarImage `json:"avatar,omitempty"` } // @Route("/cmd/users/register", "POST") type RegisterUserAccount struct { Id *string `json:"id,omitempty"` NewUserDTO *NewUserDTO `json:"newUserDTO,omitempty"` } func (RegisterUserAccount) CreateResponse() (r ss.ResponseStatus) { return } func (RegisterUserAccount) HttpMethod() string { return "POST" }