From 1babde87660fa0d1fc0328b095ce4bad7f112524 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 3 Nov 2025 22:22:58 +0000 Subject: [PATCH] Adding Contact (#1) Reviewed-on: https://git.kundeng.us/phoenix/textsender-models/pulls/1 Co-authored-by: phoenix Co-committed-by: phoenix --- .gitea/workflows/tag_release.yaml | 2 +- pkg/contact/contact.go | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 pkg/contact/contact.go diff --git a/.gitea/workflows/tag_release.yaml b/.gitea/workflows/tag_release.yaml index 72d71eb..8344944 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.3" + VERSION="0.0.4" 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/contact/contact.go b/pkg/contact/contact.go new file mode 100644 index 0000000..e3b277d --- /dev/null +++ b/pkg/contact/contact.go @@ -0,0 +1,11 @@ +package contact + +import ( + "github.com/google/uuid" +) + +type Contact struct { + Id uuid.UUID `json:"id,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + UserId uuid.UUID `json:"user_id,omitempty"` +}