Compare commits

..

No commits in common. "7567a234d5824374dc66f560d4edf9daae6b2e8c" and "10e9caaaa68b6ea6702a390fc1af047abdc169ee" have entirely different histories.

7 changed files with 12 additions and 14 deletions

3
.gitignore vendored
View File

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

View File

@ -21,7 +21,7 @@ fmt: # 格式優化
.PHONY: gen-rpc .PHONY: gen-rpc
gen-rpc: # 建立 rpc code gen-rpc: # 建立 rpc code
$(GO_CTL_NAME) rpc protoc ./generate/protobuf/notification.proto -m --style=$(GO_ZERO_STYLE) --go_out=./gen_result/pb --go-grpc_out=./gen_result/pb --zrpc_out=. $(GO_CTL_NAME) rpc protoc ./generate/protobuf/service.proto -m --style=$(GO_ZERO_STYLE) --go_out=./gen_result/pb --go-grpc_out=./gen_result/pb --zrpc_out=.
copy ./etc/service.yaml ./etc/service.example.yaml copy ./etc/service.yaml ./etc/service.example.yaml
go mod tidy go mod tidy
@echo "Generate core-api files successfully" @echo "Generate core-api files successfully"

View File

@ -1,5 +1,5 @@
// Code generated by goctl. DO NOT EDIT. // Code generated by goctl. DO NOT EDIT.
// Source: notification.proto // Source: service.proto
package senderservice package senderservice

View File

@ -1,14 +1,14 @@
Name: notification.rpc Name: service.rpc
ListenOn: 0.0.0.0:8003 ListenOn: 0.0.0.0:8080
Etcd: Etcd:
Hosts: Hosts:
- 127.0.0.1:2379 - 127.0.0.1:2379
Key: notification.rpc Key: service.rpc
SMTP: SMTP:
Host: smtp.mailgun.org Host: smtp.mailgun.org
Port: 25 Port: 25
User: postmaster@abc123@30.com User: xxx
Password: gg88g88 Password: 000
SMSSender: SMSSender:
User: daniel@30cm.net User: daniel@30cm.net

View File

@ -1,5 +1,5 @@
// Code generated by goctl. DO NOT EDIT. // Code generated by goctl. DO NOT EDIT.
// Source: notification.proto // Source: service.proto
package server package server
@ -8,7 +8,6 @@ import (
"app-cloudep-notification-service/gen_result/pb/notification" "app-cloudep-notification-service/gen_result/pb/notification"
senderservicelogic "app-cloudep-notification-service/internal/logic/senderservice" senderservicelogic "app-cloudep-notification-service/internal/logic/senderservice"
"app-cloudep-notification-service/internal/svc" "app-cloudep-notification-service/internal/svc"
) )

View File

@ -16,7 +16,7 @@ import (
"google.golang.org/grpc/reflection" "google.golang.org/grpc/reflection"
) )
var configFile = flag.String("f", "etc/notification.yaml", "the config file") var configFile = flag.String("f", "etc/service.yaml", "the config file")
func main() { func main() {
flag.Parse() flag.Parse()