Added ScheduledMessage
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
package scheduling
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/google/uuid"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
type ScheduledMessage struct {
|
||||||
|
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"`
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package scheduling
|
||||||
|
|
||||||
|
|
||||||
|
const (
|
||||||
|
Ready = "READY"
|
||||||
|
Pending = "PENDING"
|
||||||
|
Processing = "PROCESSING"
|
||||||
|
Done = "DONE"
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user