Code formatting
This commit is contained in:
@@ -7,9 +7,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ScheduledEvent struct {
|
type ScheduledEvent struct {
|
||||||
Id uuid.UUID `json:"id"`
|
Id uuid.UUID `json:"id"`
|
||||||
RecipientId uuid.UUID `json:"recipient_id"`
|
RecipientId uuid.UUID `json:"recipient_id"`
|
||||||
MessageId uuid.UUID `json:"message_id"`
|
MessageId uuid.UUID `json:"message_id"`
|
||||||
ScheduledMessageId uuid.UUID `json:"scheduled_message_id"`
|
ScheduledMessageId uuid.UUID `json:"scheduled_message_id"`
|
||||||
Created time.Time `json:"created"`
|
Created time.Time `json:"created"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,11 +6,10 @@ import (
|
|||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
type ScheduledMessage struct {
|
type ScheduledMessage struct {
|
||||||
Id uuid.UUID `json:"id"`
|
Id uuid.UUID `json:"id"`
|
||||||
Scheduled time.Time `json:"scheduled"`
|
Scheduled time.Time `json:"scheduled"`
|
||||||
Created time.Time `json:"created"`
|
Created time.Time `json:"created"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
UserId uuid.UUID `json:"user_id"`
|
UserId uuid.UUID `json:"user_id"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
package scheduling
|
package scheduling
|
||||||
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Ready = "READY"
|
Ready = "READY"
|
||||||
Pending = "PENDING"
|
Pending = "PENDING"
|
||||||
Processing = "PROCESSING"
|
Processing = "PROCESSING"
|
||||||
Done = "DONE"
|
Done = "DONE"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,4 +10,3 @@ type User struct {
|
|||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user