Scheduled message add event (#4)
Reviewed-on: phoenix/textsender-models#4 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package scheduling
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type ScheduledMessageEvent struct {
|
||||
Id uuid.UUID `json:"id"`
|
||||
RecipientId uuid.UUID `json:"recipient_id"`
|
||||
MessageId uuid.UUID `json:"message_id"`
|
||||
ScheduledMessageId uuid.UUID `json:"scheduled_message_id"`
|
||||
Created time.Time `json:"created"`
|
||||
}
|
||||
@@ -6,11 +6,10 @@ import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
type ScheduledMessage struct {
|
||||
Id uuid.UUID `json:"id"`
|
||||
Id uuid.UUID `json:"id"`
|
||||
Scheduled time.Time `json:"scheduled"`
|
||||
Created time.Time `json:"created"`
|
||||
Status string `json:"status"`
|
||||
UserId uuid.UUID `json:"user_id"`
|
||||
Created time.Time `json:"created"`
|
||||
Status string `json:"status"`
|
||||
UserId uuid.UUID `json:"user_id"`
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
package scheduling
|
||||
|
||||
|
||||
const (
|
||||
Ready = "READY"
|
||||
Pending = "PENDING"
|
||||
Ready = "READY"
|
||||
Pending = "PENDING"
|
||||
Processing = "PROCESSING"
|
||||
Done = "DONE"
|
||||
Done = "DONE"
|
||||
)
|
||||
|
||||
@@ -10,4 +10,3 @@ type User struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user