Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download api/pkg/requests/user_notification_update_request.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 935 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/requests/user_notification_update_request.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/requests/user_notification_update_request.go
-
curl -L -o user_notification_update_request.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/pkg/requests/user_notification_update_request.go
935 Bytes
| package requests | |
| import ( | |
| "github.com/NdoleStudio/httpsms/pkg/services" | |
| ) | |
| // UserNotificationUpdate is the payload for updating a phone | |
| type UserNotificationUpdate struct { | |
| request | |
| MessageStatusEnabled bool `json:"message_status_enabled" example:"true"` | |
| WebhookEnabled bool `json:"webhook_enabled" example:"true"` | |
| HeartbeatEnabled bool `json:"heartbeat_enabled" example:"true"` | |
| NewsletterEnabled bool `json:"newsletter_enabled" example:"true"` | |
| } | |
| // ToUserNotificationUpdateParams converts UserNotificationUpdate to services.UserNotificationUpdateParams | |
| func (input *UserNotificationUpdate) ToUserNotificationUpdateParams() *services.UserNotificationUpdateParams { | |
| return &services.UserNotificationUpdateParams{ | |
| MessageStatusEnabled: input.MessageStatusEnabled, | |
| WebhookEnabled: input.WebhookEnabled, | |
| HeartbeatEnabled: input.HeartbeatEnabled, | |
| NewsletterEnabled: input.NewsletterEnabled, | |
| } | |
| } | |