Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12bf453925 | ||
|
|
404ad1594b
|
||
|
|
bad958a592
|
||
|
|
7915171bb2
|
||
|
|
f9b55b6bb7 |
@@ -25,7 +25,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Creating version"
|
echo "Creating version"
|
||||||
|
|
||||||
VERSION="0.0.11"
|
VERSION="0.0.12"
|
||||||
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
|
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
|
||||||
BRANCH_REF="${{ gitea.ref }}"
|
BRANCH_REF="${{ gitea.ref }}"
|
||||||
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
|
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ type MessageEventResponse struct {
|
|||||||
UserId uuid.UUID `json:"user_id,omitempty"`
|
UserId uuid.UUID `json:"user_id,omitempty"`
|
||||||
ContactId *uuid.UUID `json:"contact_id,omitempty"`
|
ContactId *uuid.UUID `json:"contact_id,omitempty"`
|
||||||
MessageId *uuid.UUID `json:"message_id,omitempty"`
|
MessageId *uuid.UUID `json:"message_id,omitempty"`
|
||||||
Status *string `json:"status"`
|
Status string `json:"status"`
|
||||||
Sent time.Time `json:"sent"`
|
Sent time.Time `json:"sent"`
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Message_Event_Response_Status_Instant = "Instant"
|
Message_Event_Response_Status_Instant = "INSTANT"
|
||||||
Message_Event_Response_Status_Scheduled = "Scheduled"
|
Message_Event_Response_Status_Scheduled = "SCHEDULED"
|
||||||
)
|
)
|
||||||
|
|||||||
+6
-1
@@ -11,8 +11,13 @@ type Claims struct {
|
|||||||
jwt.RegisteredClaims
|
jwt.RegisteredClaims
|
||||||
}
|
}
|
||||||
|
|
||||||
type Login struct {
|
type LoginResult struct {
|
||||||
|
UserId uuid.UUID `json:"user_id"`
|
||||||
AccessToken string `json:"access_token"`
|
AccessToken string `json:"access_token"`
|
||||||
TokenType string `json:"token_type"`
|
TokenType string `json:"token_type"`
|
||||||
ExpiresIn int64 `json:"expires_in"`
|
ExpiresIn int64 `json:"expires_in"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Alias for LoginResult
|
||||||
|
// Will be deprecated at some point
|
||||||
|
type Login = LoginResult
|
||||||
|
|||||||
Reference in New Issue
Block a user