From ebda22327054993f848f3c92428eb2956267595d Mon Sep 17 00:00:00 2001 From: Shion Ichikawa Date: Sat, 12 Oct 2024 05:59:52 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Confirm=20param=20in=20user.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/model/user.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/model/user.go b/pkg/model/user.go index c1eafc3..95a5dfc 100644 --- a/pkg/model/user.go +++ b/pkg/model/user.go @@ -3,15 +3,16 @@ package model import "time" type User struct { - LINEID string `json:"line_id"` - Target Target `json:"target"` - AddDate time.Time `json:"add_date"` + LINEID string `firestore:"line_id"` + Target Target `firestore:"target"` + AddDate time.Time `firestore:"add_date"` } type PhoneNumber string type Target struct { - Nickname string `json:"nickname"` - Phone PhoneNumber `json:"phone_number"` - CallTime string `json:"call_time"` // 12:00 + Nickname string `firestore:"nickname"` + Phone PhoneNumber `firestore:"phone_number"` + CallTime string `firestore:"call_time"` // 12:00 + Confirm bool `firestore:"confirm"` }