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/message_thread_update_request.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 902 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/api/pkg/requests/message_thread_update_request.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/api/pkg/requests/message_thread_update_request.go
-
curl -L -o message_thread_update_request.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/api/pkg/requests/message_thread_update_request.go
902 Bytes
| package requests | |
| import ( | |
| "github.com/NdoleStudio/httpsms/pkg/entities" | |
| "github.com/google/uuid" | |
| "github.com/NdoleStudio/httpsms/pkg/services" | |
| ) | |
| // MessageThreadUpdate is the payload for updating a message thread | |
| type MessageThreadUpdate struct { | |
| request | |
| IsArchived *bool `json:"is_archived,omitempty" example:"true"` | |
| UnreadCount *uint `json:"unread_count,omitempty" example:"0"` | |
| MessageThreadID string `json:"messageThreadID" swaggerignore:"true"` // used internally for validation | |
| } | |
| // ToUpdateParams converts MessageThreadUpdate to services.MessageThreadStatusParams | |
| func (input *MessageThreadUpdate) ToUpdateParams(userID entities.UserID) services.MessageThreadStatusParams { | |
| return services.MessageThreadStatusParams{ | |
| UserID: userID, | |
| MessageThreadID: uuid.MustParse(input.MessageThreadID), | |
| IsArchived: input.IsArchived, | |
| UnreadCount: input.UnreadCount, | |
| } | |
| } | |