diff --git a/pkg/proto/chat/chat.pb.go b/pkg/proto/chat/chat.pb.go index 07a78b542..eb385ede8 100644 --- a/pkg/proto/chat/chat.pb.go +++ b/pkg/proto/chat/chat.pb.go @@ -6,7 +6,7 @@ package pbChat // import "./chat" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import sdk_ws "./sdk_ws" +import sdk_ws "Open_IM/pkg/proto/sdk_ws" import ( context "golang.org/x/net/context" diff --git a/pkg/proto/chat/chat.proto b/pkg/proto/chat/chat.proto index cd67ed069..21ba8c4aa 100644 --- a/pkg/proto/chat/chat.proto +++ b/pkg/proto/chat/chat.proto @@ -1,7 +1,9 @@ syntax = "proto3"; import "Open_IM/pkg/proto/sdk_ws/ws.proto"; -package pbChat;//The package name to which the proto file belongs -option go_package = "./chat;pbChat";//The generated go pb file is in the current directory, and the package name is pbChat +option go_package = "./chat;pbChat"; +package pbChat; + + message MsgDataToMQ{ string token =1; @@ -76,5 +78,5 @@ service Chat { rpc GetMaxAndMinSeq(GetMaxAndMinSeqReq) returns(GetMaxAndMinSeqResp); rpc PullMessageBySeqList(server_api_params.PullMessageBySeqListReq) returns(server_api_params.PullMessageBySeqListResp); rpc SendMsg(SendMsgReq) returns(SendMsgResp); - rpc DelMsgList(server_api_params.DelMsgListReq) returns(server_api_params.DelMsgListResp); + // rpc DelMsgList(server_api_params.DelMsgListReq) returns(server_api_params.DelMsgListResp); } diff --git a/pkg/proto/sdk_ws/ws.proto b/pkg/proto/sdk_ws/ws.proto index 4c7ba4c8b..d247cb107 100644 --- a/pkg/proto/sdk_ws/ws.proto +++ b/pkg/proto/sdk_ws/ws.proto @@ -1,7 +1,6 @@ syntax = "proto3"; option go_package = "./sdk_ws;server_api_params"; -package server_api_params;//The package name to which the proto file belongs -//option go_package = "./sdk_ws;open_im_sdk";//The generated go pb file is in the current directory, and the package name is open_im_sdk +package server_api_params; ////////////////////////////////base///////////////////////////////