Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Id int `gorm:"column:id" json:"id"` Content string `gorm:"column:content" json:"content"` RecipientPhoneNumber string `gorm:"column:recipient_phone_number" json:"recipient_phone_number"` Status MessageStatus `gorm:"column:status" json:"status"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` SentAt *time.Time `gorm:"column:sent_at" json:"sent_at"` }
type MessageClientResponse ¶
type MessageCreateRequest ¶
type MessageCreateRequest struct { Content string `gorm:"column:content" json:"content"` RecipientPhoneNumber string `gorm:"column:recipient_phone_number" json:"recipient_phone_number"` }
func (MessageCreateRequest) Validate ¶
func (m MessageCreateRequest) Validate() error
type MessageRedisPayload ¶
type MessageStatus ¶
type MessageStatus string
const ( MESSAGE_UNSENT MessageStatus = "unsent" MESSAGE_PROCESSING MessageStatus = "processing" MESSAGE_SENT MessageStatus = "sent" MESSAGE_FAILED MessageStatus = "failed" )
Click to show internal directories.
Click to hide internal directories.