httpsms-gateway / api /pkg /events /phone_deleted_event.go
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
Raw History Blame Contribute Delete
545 Bytes
package events
import (
"time"
"github.com/NdoleStudio/httpsms/pkg/entities"
"github.com/google/uuid"
)
// EventTypePhoneDeleted is emitted when the phone os deleted
const EventTypePhoneDeleted = "phone.deleted"
// PhoneDeletedPayload is the payload of the EventTypePhoneDeleted event
type PhoneDeletedPayload struct {
PhoneID uuid.UUID `json:"phone_id"`
UserID entities.UserID `json:"user_id"`
Timestamp time.Time `json:"timestamp"`
Owner string `json:"owner"`
SIM entities.SIM `json:"sim"`
}