From 8f7198ed7c6a2fc680057c815c0bb4793b4817c3 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 15 Dec 2025 20:58:47 +0000 Subject: [PATCH] tsk-12: Contact improvements (#18) Closes #12 Reviewed-on: https://git.kundeng.us/phoenix/textsender-models/pulls/18 Co-authored-by: phoenix Co-committed-by: phoenix --- tx0/contact/contact.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tx0/contact/contact.go b/tx0/contact/contact.go index e3b277d..6baee60 100644 --- a/tx0/contact/contact.go +++ b/tx0/contact/contact.go @@ -5,7 +5,10 @@ import ( ) type Contact struct { - Id uuid.UUID `json:"id,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - UserId uuid.UUID `json:"user_id,omitempty"` + Id *uuid.UUID `json:"id,omitempty"` + Firstname *string `json:"first_name,omitempty"` + Lastname *string `json:"last_name,omitempty"` + Nickname *string `json:"nickname,omitempty"` + PhoneNumber string `json:"phone_number"` + UserId *uuid.UUID `json:"user_id,omitempty"` }