feat: init make file and docker file

This commit is contained in:
daniel.w 2024-08-20 18:17:34 +08:00
commit 8226e179ab
5 changed files with 8 additions and 8 deletions

2
.gitignore vendored
View File

@ -2,5 +2,5 @@
go.sum
account/
gen_result/
etc/app-cloudep-notification-service.yaml
etc/service.yaml
./client

View File

@ -1,4 +1,5 @@
GO_CTL_NAME=goctl
# go-zero 生成風格
GO_ZERO_STYLE=go_zero
@ -9,7 +10,6 @@ LDFLAGS := -s -w
VERSION="v1.0.3"
DOCKER_REPO="igs170911/notification"
.PHONY: test
test: # 進行測試
go test -v --cover ./...
@ -46,3 +46,4 @@ build-docker:
cp ./build/Dockerfile Dockerfile
docker buildx build -t $(DOCKER_REPO):$(VERSION) --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/ed_25519)" .
rm -rf Dockerfile
@echo "Generate core-api files successfully"

View File

@ -2,5 +2,5 @@ Name: service.rpc
ListenOn: 0.0.0.0:8080
Etcd:
Hosts:
- docker-etcd.digimon.orb.local:2379
- 127.0.0.1:2379
Key: service.rpc

View File

@ -1,13 +1,11 @@
package senderservicelogic
import (
"context"
"fmt"
"app-cloudep-notification-service/gen_result/pb/notification"
"app-cloudep-notification-service/internal/svc"
ers "code.30cm.net/digimon/library-go/errors"
"context"
"fmt"
"github.com/zeromicro/go-zero/core/logx"
)

View File

@ -8,6 +8,7 @@ import (
"app-cloudep-notification-service/gen_result/pb/notification"
senderservicelogic "app-cloudep-notification-service/internal/logic/senderservice"
"app-cloudep-notification-service/internal/logic/senderservice"
"app-cloudep-notification-service/internal/svc"
)