Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bad958a592
|
||
|
|
7915171bb2
|
||
|
|
f9b55b6bb7 |
@@ -15,11 +15,11 @@ type MessageEventResponse struct {
|
||||
UserId uuid.UUID `json:"user_id,omitempty"`
|
||||
ContactId *uuid.UUID `json:"contact_id,omitempty"`
|
||||
MessageId *uuid.UUID `json:"message_id,omitempty"`
|
||||
Status *string `json:"status"`
|
||||
Status string `json:"status"`
|
||||
Sent time.Time `json:"sent"`
|
||||
}
|
||||
|
||||
const (
|
||||
Message_Event_Response_Status_Instant = "Instant"
|
||||
Message_Event_Response_Status_Scheduled = "Scheduled"
|
||||
Message_Event_Response_Status_Instant = "INSTANT"
|
||||
Message_Event_Response_Status_Scheduled = "SCHEDULED"
|
||||
)
|
||||
|
||||
+9
-5
@@ -11,9 +11,13 @@ type Claims struct {
|
||||
jwt.RegisteredClaims
|
||||
}
|
||||
|
||||
type Login struct {
|
||||
UserId uuid.UUID `json:"user_id"`
|
||||
AccessToken string `json:"access_token"`
|
||||
TokenType string `json:"token_type"`
|
||||
ExpiresIn int64 `json:"expires_in"`
|
||||
type LoginResult struct {
|
||||
UserId uuid.UUID `json:"user_id"`
|
||||
AccessToken string `json:"access_token"`
|
||||
TokenType string `json:"token_type"`
|
||||
ExpiresIn int64 `json:"expires_in"`
|
||||
}
|
||||
|
||||
// Alias for LoginResult
|
||||
// Will be deprecated at some point
|
||||
type Login = LoginResult
|
||||
|
||||
Reference in New Issue
Block a user