diff --git a/README.md b/README.md index c53df05..0e2dca3 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ git submodule add https://gitee.com/fusenpack/proto go run proto/goutils/proto_build/main.go 或者 在proto/goutils/proto_build/main_test.go执行测试 TestMain + +./update_fspkg_master.sh # 执行更新最新的包 ``` #### 软件架构 diff --git a/goutils/proto_build/main.go b/goutils/proto_build/main.go index 087eab4..a5d52fd 100644 --- a/goutils/proto_build/main.go +++ b/goutils/proto_build/main.go @@ -190,12 +190,12 @@ func CheckGomodBasicPackage() { if !regexp.MustCompile(`fusen-basic `).Match(data) { log.Println(isRewrite, len(content)) isRewrite = true - content += "\n\nreplace fusen-basic v0.0.0 => gitee.com/fusenpack/fusen-basic v0.0.1" + content += "\n\nreplace fusen-basic v0.0.0 => gitlab.fusenpack.com/backend/basic v0.0.1" } if !regexp.MustCompile(`fusen-model `).Match(data) { isRewrite = true - content += "\n\nreplace fusen-model v0.0.0 => gitee.com/fusenpack/fusen-model v0.0.1" + content += "\n\nreplace fusen-model v0.0.0 => gitlab.fusenpack.com/backend/model v0.0.1" } if isRewrite { diff --git a/service/auth.proto b/service/auth.proto index 467713e..ae10948 100644 --- a/service/auth.proto +++ b/service/auth.proto @@ -1,7 +1,7 @@ syntax = "proto3"; //版本声明,使用v3版本 package auth; -option go_package = "gitee.com/fusenpack/fusen-auth;service"; +option go_package = "gitlab.fusenpack.com/backend/auth;service"; // 导入google/api/annotations.proto 注释依赖 import "google/api/annotations.proto"; diff --git a/service/fsservice.proto b/service/fsservice.proto index fb594a1..13e0442 100644 --- a/service/fsservice.proto +++ b/service/fsservice.proto @@ -1,7 +1,7 @@ syntax = "proto3"; //版本声明,使用v3版本 package fsservice; -option go_package = "gitee.com/fusenpack/fusen-service;service"; +option go_package = "gitlab.fusenpack.com/backend/service;service"; // 导入google/api/annotations.proto 注释依赖 import "google/api/annotations.proto"; @@ -9,16 +9,7 @@ import "service/basic.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/any.proto"; -//定义服务 -service notify { - rpc Hello(basic.Request) returns (basic.Response) { - option (google.api.http) = { - post: "/api/notify/hello" - body: "*" - }; - } -} - + //定义服务 service info { // 用户信息 diff --git a/service/notify.proto b/service/notify.proto new file mode 100644 index 0000000..4d005ce --- /dev/null +++ b/service/notify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; //版本声明,使用v3版本 + +package notify; +option go_package = "gitlab.fusenpack.com/backend/notify;service"; + +// 导入google/api/annotations.proto 注释依赖 +import "google/api/annotations.proto"; +import "service/basic.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/any.proto"; + +//定义服务 +service notify { + rpc Email(basic.Request) returns (basic.Response) { + option (google.api.http) = { + post: "/api/notify/email" + body: "*" + }; + } +} \ No newline at end of file