Compare commits

...
Author SHA1 Message Date
phoenix b1ceb74233 Added Username field to ServiceUser 2025-11-20 13:19:21 -05:00
phoenix 7714d5dc33 Updated workflow 2025-11-20 12:23:34 -05:00
phoenix a8389ef7d8 Code formatting 2025-11-20 12:22:51 -05:00
phoenix 9d01596648 Added omitempty tag 2025-11-20 12:22:16 -05:00
phoenix a8a561d32b Added service user 2025-11-20 12:20:42 -05:00
3 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
run: |
echo "Creating version"
VERSION="0.0.7"
VERSION="0.0.8"
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
BRANCH_REF="${{ gitea.ref }}"
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
+1 -1
View File
@@ -6,6 +6,6 @@ import (
type Message struct {
Id uuid.UUID `json:"id"`
Content string `json:"content"`
Content string `json:"content,omitempty"`
UserId uuid.UUID `json:"user_id"`
}
+14
View File
@@ -0,0 +1,14 @@
package user
import (
"time"
"github.com/google/uuid"
)
type ServiceUser struct {
Id uuid.UUID `json:"id"`
Username string `json:"username,omitempty"`
Passphrase string `json:"passphrase,omitempty"`
Created *time.Time `json:"date_created,omitempty"`
}