Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3386b1888
|
||
|
|
2bb52371c8 | ||
|
|
1babde8766 | ||
|
|
84d04c08d8
|
||
|
|
643d4240dc
|
||
|
|
9398e36269
|
||
|
|
aedaaa1de7
|
||
|
|
a4317b4b22
|
||
|
|
c654aa2d2e
|
||
|
|
8751050126
|
@@ -16,14 +16,16 @@ jobs:
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: '1.25.3'
|
||||
|
||||
- name: Create version
|
||||
id: version
|
||||
run: |
|
||||
VERSION=$(git tag --sort=-version:refname | sed 's/-\(main\|devel\).*//' | uniq | head -n 1)
|
||||
echo "Creating version"
|
||||
|
||||
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)
|
||||
|
||||
@@ -14,9 +14,14 @@ jobs:
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.25.3'
|
||||
- name: Configure Git for SSH
|
||||
run: |
|
||||
git config --global url."git@git.kundeng.us:".insteadOf "https://git.kundeng.us/"
|
||||
go env -w GOPRIVATE=git.kundeng.us/phoenix/*
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
run: |
|
||||
go mod download
|
||||
|
||||
- name: Run tests
|
||||
run: go test -v ./... # Runs all tests in the project
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package message
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
Id uuid.UUID `json:"id"`
|
||||
Content string `json:"content"`
|
||||
UserId uuid.UUID `json:"user_id"`
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package scheduling
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
type ScheduledMessage struct {
|
||||
Id uuid.UUID `json:"id"`
|
||||
Scheduled time.Time `json:"scheduled"`
|
||||
Created time.Time `json:"created"`
|
||||
Status string `json:"status"`
|
||||
UserId uuid.UUID `json:"user_id"`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package scheduling
|
||||
|
||||
|
||||
const (
|
||||
Ready = "READY"
|
||||
Pending = "PENDING"
|
||||
Processing = "PROCESSING"
|
||||
Done = "DONE"
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
Id uuid.UUID `json:"id"`
|
||||
PhoneNumber string `json:"phone_number"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user