Compare commits

..
Author SHA1 Message Date
phoenix 7714d5dc33 Updated workflow 2025-11-20 12:23:34 -05:00
phoenix a8389ef7d8 Code formatting 2025-11-20 12:22:51 -05:00
phoenix 9d01596648 Added omitempty tag 2025-11-20 12:22:16 -05:00
phoenix a8a561d32b Added service user 2025-11-20 12:20:42 -05:00
phoenixandphoenix 5bfcb8e74b TwilioConfig (#5)
Reviewed-on: phoenix/textsender-models#5
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-11-14 19:15:05 +00:00
phoenixandphoenix 28b29802b9 Scheduled message add event (#4)
Reviewed-on: phoenix/textsender-models#4
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-11-09 18:47:46 +00:00
4 changed files with 36 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
run: |
echo "Creating version"
VERSION="0.0.6"
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)
+21
View File
@@ -0,0 +1,21 @@
package config
import (
"fmt"
)
type TwiloConfig 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 *TwiloConfig) 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)
}
+1 -1
View File
@@ -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"`
}
+13
View File
@@ -0,0 +1,13 @@
package user
import (
"time"
"github.com/google/uuid"
)
type ServiceUser struct {
Id uuid.UUID `json:"id"`
Passphrase string `json:"passphrase,omitempty"`
Created *time.Time `json:"date_created,omitempty"`
}