Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca38ce876f
|
||
|
|
c3386b1888
|
||
|
|
2bb52371c8 | ||
|
|
1babde8766 | ||
|
|
84d04c08d8
|
||
|
|
643d4240dc
|
||
|
|
9398e36269
|
||
|
|
aedaaa1de7
|
@@ -25,7 +25,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Creating version"
|
echo "Creating version"
|
||||||
|
|
||||||
VERSION="0.0.1"
|
VERSION="0.0.5"
|
||||||
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
|
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
|
||||||
BRANCH_REF="${{ gitea.ref }}"
|
BRANCH_REF="${{ gitea.ref }}"
|
||||||
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
|
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
|
||||||
|
|||||||
@@ -14,9 +14,14 @@ jobs:
|
|||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.25.3'
|
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
|
- name: Download dependencies
|
||||||
run: go mod download
|
run: |
|
||||||
|
go mod download
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v ./... # Runs all tests in the project
|
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