From 44848fdffdfdb3711f4e96304a0e5555d46f11df Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 31 Dec 2025 22:07:06 +0000 Subject: [PATCH] tsk-25: Change time references (#32) Closes #25 Reviewed-on: https://git.kundeng.us/phoenix/textsender-models/pulls/32 Co-authored-by: phoenix Co-committed-by: phoenix --- .gitea/workflows/tag_release.yaml | 2 +- tx0/user/service_user.go | 5 +++-- tx0/user/user.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/tag_release.yaml b/.gitea/workflows/tag_release.yaml index b63e689..cd85e9f 100644 --- a/.gitea/workflows/tag_release.yaml +++ b/.gitea/workflows/tag_release.yaml @@ -25,7 +25,7 @@ jobs: run: | echo "Creating version" - VERSION="0.0.14" + 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) diff --git a/tx0/user/service_user.go b/tx0/user/service_user.go index 22762d5..0c9fece 100644 --- a/tx0/user/service_user.go +++ b/tx0/user/service_user.go @@ -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"` } diff --git a/tx0/user/user.go b/tx0/user/user.go index ab6f8af..4e967d5 100644 --- a/tx0/user/user.go +++ b/tx0/user/user.go @@ -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"` }