experiment (#12)

Reviewed-on: #12
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-11-14 22:09:08 +00:00
committed by phoenix
parent 59362806e5
commit a1c197cb06
9 changed files with 143 additions and 109 deletions
+4 -24
View File
@@ -2,6 +2,8 @@ package models
import (
"fmt"
cnfg "git.kundeng.us/phoenix/textsender-models/pkg/config"
)
type Number struct {
@@ -38,28 +40,6 @@ func (msg Message) Print() {
fmt.Println("Message:", msg.Text)
}
type TwiloDetails struct {
AccountSID string `json:"auth_sid"`
ServiceSID string `json:"service_sid"`
URI string `json:"uri"`
AuthToken string `json:"auth_token"`
Number string `json:"phone_number"`
}
func (config TwiloDetails) PrintConfig() {
fmt.Printf("Account SID: %s\n", config.AccountSID)
fmt.Printf("Service SID: %s\n", config.ServiceSID)
fmt.Println("URI:", config.URI)
fmt.Printf("Auth Token: %s\n", config.AuthToken)
fmt.Printf("Number: %s\n", config.Number)
}
func Init() TwiloDetails {
return TwiloDetails{
"",
"",
"",
"",
"",
}
func Init() cnfg.TwiloConfig {
return cnfg.TwiloConfig{}
}