Compare commits

..
Author SHA1 Message Date
phoenixandphoenix 44848fdffd tsk-25: Change time references (#32)
Closes #25

Reviewed-on: phoenix/textsender-models#32
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-12-31 22:07:06 +00:00
phoenixandphoenix e894925996 tsk-23: Message enhancements (#31)
Closes #23

Reviewed-on: phoenix/textsender-models#31
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-12-31 21:52:47 +00:00
phoenixandphoenix 08f5938b79 tsk-24: Added IssuedAt to token.LoginResult (#28)
Closes #24

Reviewed-on: phoenix/textsender-models#28
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-12-30 23:48:45 +00:00
5 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
run: |
echo "Creating version"
VERSION="0.0.13"
VERSION="0.1.1"
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
BRANCH_REF="${{ gitea.ref }}"
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
+3 -3
View File
@@ -5,7 +5,7 @@ import (
)
type Message struct {
Id uuid.UUID `json:"id"`
Content string `json:"content,omitempty"`
UserId uuid.UUID `json:"user_id"`
Id *uuid.UUID `json:"id,omitempty"`
Content string `json:"content"`
UserId *uuid.UUID `json:"user_id,omitempty"`
}
+1
View File
@@ -16,6 +16,7 @@ type LoginResult struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int64 `json:"expires_in"`
IssuedAt int64 `json:"issued_at"`
}
// Alias for LoginResult
+3 -2
View File
@@ -7,8 +7,9 @@ import (
)
type ServiceUser struct {
Id uuid.UUID `json:"id"`
Id uuid.UUID `json:"id"`
// TODO: Remove the omitempty tags at a later point
Username string `json:"username,omitempty"`
Passphrase string `json:"passphrase,omitempty"`
Created time.Time `json:"date_created"`
Created time.Time `json:"created"`
}
+1 -1
View File
@@ -13,6 +13,6 @@ type User struct {
Password string `json:"password"`
Firstname *string `json:"first_name,omitempty"`
Lastname *string `json:"last_name,omitempty"`
Created time.Time `json:"date_created"`
Created time.Time `json:"created"`
LastLogin *time.Time `json:"last_login,omitempty"`
}