修复 改名的问题
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
// 用户信息
|
||||
|
||||
20
service/notify.proto
Normal file
20
service/notify.proto
Normal file
@@ -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: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user