/* Options: Date: 2026-11-07 03:05:40 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: GetUserNotifications.* //ExcludeTypes: //DefaultImports: */ package dtos import ( "time" ) type RecordDictionary[TKey any, TVal any] map[TKey]TVal type Severity int const ( SeveritySuccess Severity = 0 SeverityInfo Severity = 1 SeverityWarning Severity = 2 SeverityError Severity = 3 ) type NotificationType int const ( NotificationTypeDefault NotificationType = 0 NotificationTypeSlipDeliveryConfirmationRequest NotificationType = 1 NotificationTypeSlipDeliveryIssueResolved NotificationType = 2 ) type Notification struct { Severity Severity `json:"severity,omitempty"` Type NotificationType `json:"type,omitempty"` Data *RecordDictionary[string, string] `json:"data,omitempty"` } type UserNotification struct { Id *string `json:"id,omitempty"` Notification *Notification `json:"notification,omitempty"` DispatchedAt time.Time `json:"dispatchedAt,omitempty"` } type UserNotifications struct { IsOverflown bool `json:"isOverflown,omitempty"` Id *string `json:"id,omitempty"` N int `json:"n,omitempty"` S int `json:"s,omitempty"` I int `json:"i,omitempty"` W int `json:"w,omitempty"` E int `json:"e,omitempty"` Notifications map[string]UserNotification `json:"notifications,omitempty"` } // @Route("/qry/users/notifications") type GetUserNotifications struct { Id *string `json:"id,omitempty"` } func (GetUserNotifications) CreateResponse() (r UserNotifications) { return } func (GetUserNotifications) HttpMethod() string { return "POST" }