diff --git a/.gitea/workflows/tag_release.yaml b/.gitea/workflows/tag_release.yaml index 8100d0e..0bb865e 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.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) diff --git a/pkg/message/message.go b/pkg/message/message.go index 8079ce3..e4f5276 100644 --- a/pkg/message/message.go +++ b/pkg/message/message.go @@ -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"` } diff --git a/pkg/user/service_user.go b/pkg/user/service_user.go new file mode 100644 index 0000000..8bcbda8 --- /dev/null +++ b/pkg/user/service_user.go @@ -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"` +}