提交 3f9c3704 编写于 作者: 落凡尘.'s avatar 落凡尘.

update proto

上级 1e4a1dff
......@@ -275,7 +275,9 @@ func init() {
proto.RegisterType((*UserTokenResp)(nil), "pbAuth.UserTokenResp")
}
func init() { proto.RegisterFile("auth/auth.proto", fileDescriptor_712ec48c1eaf43a2) }
func init() {
proto.RegisterFile("auth/auth.proto", fileDescriptor_712ec48c1eaf43a2)
}
var fileDescriptor_712ec48c1eaf43a2 = []byte{
// 346 bytes of a gzipped FileDescriptorProto
......@@ -305,11 +307,11 @@ var fileDescriptor_712ec48c1eaf43a2 = []byte{
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// AuthClient is the client API for Auth service.
//
......@@ -320,10 +322,10 @@ type AuthClient interface {
}
type authClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewAuthClient(cc *grpc.ClientConn) AuthClient {
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient {
return &authClient{cc}
}
......
......@@ -5,6 +5,9 @@ source ./proto_dir.cfg
for ((i = 0; i < ${#all_proto[*]}; i++)); do
proto=${all_proto[$i]}
protoc --go_out=plugins=grpc:. $proto
s=$(echo $proto | sed 's/ //g')
v=${s//proto/pb.go}
protoc-go-inject-tag -input=./$v
echo "protoc --go_out=plugins=grpc:." $proto
done
echo "proto file generate success..."
......@@ -879,8 +879,9 @@ type UserSendMsgResp struct {
ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"`
ReqIdentifier int32 `protobuf:"varint,3,opt,name=ReqIdentifier,proto3" json:"ReqIdentifier,omitempty"`
MsgIncr int32 `protobuf:"varint,4,opt,name=MsgIncr,proto3" json:"MsgIncr,omitempty"`
ServerMsgID string `protobuf:"bytes,5,opt,name=ServerMsgID,proto3" json:"ServerMsgID,omitempty"`
ClientMsgID string `protobuf:"bytes,6,opt,name=ClientMsgID,proto3" json:"ClientMsgID,omitempty"`
SendTime int64 `protobuf:"varint,5,opt,name=SendTime,proto3" json:"SendTime,omitempty"`
ServerMsgID string `protobuf:"bytes,6,opt,name=ServerMsgID,proto3" json:"ServerMsgID,omitempty"`
ClientMsgID string `protobuf:"bytes,7,opt,name=ClientMsgID,proto3" json:"ClientMsgID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -939,6 +940,13 @@ func (m *UserSendMsgResp) GetMsgIncr() int32 {
return 0
}
func (m *UserSendMsgResp) GetSendTime() int64 {
if m != nil {
return m.SendTime
}
return 0
}
func (m *UserSendMsgResp) GetServerMsgID() string {
if m != nil {
return m.ServerMsgID
......@@ -966,74 +974,76 @@ func init() {
proto.RegisterType((*UserSendMsgResp)(nil), "pbChat.UserSendMsgResp")
}
func init() { proto.RegisterFile("chat/chat.proto", fileDescriptor_767a49518b351716) }
func init() {
proto.RegisterFile("chat/chat.proto", fileDescriptor_767a49518b351716)
}
var fileDescriptor_767a49518b351716 = []byte{
// 867 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6a, 0xfb, 0x46,
0x18, 0x45, 0x96, 0x2d, 0x5b, 0x9f, 0xff, 0x25, 0x43, 0x9a, 0x0e, 0xa1, 0x14, 0x21, 0x5a, 0x30,
0x5d, 0xa4, 0x90, 0x6e, 0x42, 0x0b, 0x5d, 0x24, 0x76, 0x52, 0x41, 0xd4, 0x04, 0xc9, 0xa5, 0xd0,
0x9d, 0x62, 0x8f, 0x65, 0x51, 0x5b, 0x92, 0x67, 0x94, 0x34, 0xed, 0xa2, 0x37, 0xe8, 0x19, 0x7a,
0x81, 0x1e, 0xa2, 0xbb, 0x5e, 0xa2,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0xe8, 0x7b, 0x68, 0x2b, 0x61, 0x8e,
0x4e, 0x8b, 0x59, 0xd5, 0x27, 0xe6, 0xec, 0xd3, 0x9d, 0xbc, 0x5c, 0xaf, 0x68, 0x59, 0xae, 0xaf,
0xf6, 0x4f, 0xb9, 0x7e, 0x43, 0xf8, 0xab, 0xee, 0x2f, 0x6d, 0xfe, 0xa7, 0xf1, 0x3b, 0x39, 0xfc,
0x68, 0x88, 0x3f, 0x8f, 0xdf, 0x7c, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x19, 0x33, 0xb6, 0xc4, 0x4f,
0x0a, 0x00, 0x00,
// 874 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6e, 0xeb, 0x44,
0x18, 0x95, 0xe3, 0xc4, 0x89, 0xbf, 0xfc, 0xf5, 0x8e, 0x2e, 0x65, 0x54, 0x21, 0x64, 0x59, 0x20,
0x45, 0x2c, 0x8a, 0x74, 0xd9, 0x5c, 0x81, 0xc4, 0xe2, 0x36, 0x69, 0xb1, 0x74, 0xcd, 0xad, 0xec,
0x20, 0x24, 0x76, 0x6e, 0x32, 0x71, 0x2c, 0x12, 0xdb, 0x99, 0x71, 0x4b, 0x61, 0xc1, 0x1b, 0xf0,
0x0c, 0xbc, 0x00, 0x0f, 0xc1, 0x83, 0xb0, 0x63, 0xc5, 0x5b, 0xa0, 0x99, 0xb1, 0xe3, 0xb1, 0x9d,
0x26, 0x52, 0xa5, 0x6e, 0xa2, 0x9c, 0x33, 0x3f, 0x99, 0x39, 0xe7, 0xfb, 0xce, 0x04, 0xc6, 0x8b,
0x75, 0x90, 0x7d, 0xc9, 0x3f, 0x2e, 0x53, 0x9a, 0x64, 0x09, 0x32, 0xd2, 0xbb, 0xab, 0x75, 0x90,
0xd9, 0x7f, 0xea, 0xf0, 0xea, 0x47, 0x7f, 0x9e, 0xb8, 0x2c, 0xf4, 0x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, 0xff, 0x00, 0x00, 0x00,
0xff, 0xff, 0x1f, 0x48, 0xc5, 0x48, 0x6b, 0x0a, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// ChatClient is the client API for Chat service.
//
......@@ -1045,10 +1055,10 @@ type ChatClient interface {
}
type chatClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewChatClient(cc *grpc.ClientConn) ChatClient {
func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
return &chatClient{cc}
}
......
......@@ -18,6 +18,8 @@ message WSToMsgSvrChatMsg{
int32 PlatformID =13;
repeated string ForceList = 14;
}
message MsgSvrToPushSvrChatMsg {
string SendID = 1;
string RecvID = 2;
......@@ -113,8 +115,9 @@ message UserSendMsgResp {
string ErrMsg = 2;
int32 ReqIdentifier = 3;
int32 MsgIncr = 4;
string ServerMsgID = 5;
string ClientMsgID = 6;
int64 SendTime = 5;
string ServerMsgID = 6;
string ClientMsgID = 7;
}
service Chat {
......
此差异已折叠。
......@@ -7,18 +7,18 @@ message CommonResp{
string errorMsg = 2;
}
message SearchFriendReq{
message GetFriendsInfoReq{
string uid = 1;
string OperationID = 2;
string Token = 3;
}
message SearchFriendResp{
message GetFriendInfoResp{
int32 errorCode = 1;
string errorMsg = 2;
SearchFriendData Data = 3;
GetFriendData Data = 3;
}
message SearchFriendData{
message GetFriendData{
string uid = 1;
string icon = 2;
string name = 3;
......@@ -111,7 +111,16 @@ message GetBlacklistResp{
repeated UserInfo data = 3;
}
message IsFriendReq{
string token = 1;
string receiveUid = 2;
string OperationID = 3;
}
message IsFriendResp{
int32 errorCode = 1;
string errorMsg = 2;
int32 shipType = 3;
}
message IsInBlackListReq{
string sendUid = 1;
string receiveUid = 2;
......@@ -130,7 +139,7 @@ message DeleteFriendReq{
}
message AddedFriendReq{
message AddFriendResponseReq{
string uid = 1;
int32 flag = 2;
string OperationID = 3;
......@@ -145,15 +154,17 @@ message SetFriendCommentReq{
}
service friend{
rpc searchFriend(SearchFriendReq) returns(SearchFriendResp);
rpc getFriendsInfo(GetFriendsInfoReq) returns(GetFriendInfoResp);
rpc addFriend(AddFriendReq) returns(CommonResp);
rpc getFriendApplyList(GetFriendApplyReq) returns(GetFriendApplyResp);
rpc getSelfApplyList(GetFriendApplyReq) returns(GetFriendApplyResp);
rpc getFriendList(getFriendListReq) returns(getFriendListResp);
rpc addBlacklist(AddBlacklistReq) returns(CommonResp);
rpc removeBlacklist(RemoveBlacklistReq) returns(CommonResp);
rpc isFriend(IsFriendReq) returns(IsFriendResp);
rpc isInBlackList(IsInBlackListReq) returns(IsInBlackListResp);
rpc getBlacklist(GetBlacklistReq) returns(GetBlacklistResp);
rpc deleteFriend(DeleteFriendReq) returns(CommonResp);
rpc addedFriend(AddedFriendReq) returns(CommonResp);
rpc addFriendResponse(AddFriendResponseReq) returns(CommonResp);
rpc setFriendComment(SetFriendCommentReq) returns(CommonResp);
}
\ No newline at end of file
此差异已折叠。
......@@ -8,9 +8,18 @@ message CommonResp{
}
message CreateGroupReq{
repeated string userIDList = 1;
string token = 2;
string OperationID = 3;
repeated GroupAddMemberInfo memberList = 1;
string groupName = 2;
string introduction = 3;
string notification = 4;
string faceUrl = 5;
string token = 6;
string operationID = 7;
}
message GroupAddMemberInfo{
string uid = 1;
int32 setRole = 2;
}
message CreateGroupResp{
int32 ErrorCode = 1;
......@@ -18,61 +27,102 @@ message CreateGroupResp{
string groupID = 3;
}
message GetGroupListReq{
string token = 1;
string OperationID = 2;
message GetGroupsInfoReq{
repeated string groupIDList = 1;
string token = 2;
string operationID = 3;
}
message GetGroupListResp{
message GetGroupsInfoResp{
int32 ErrorCode = 1;
string ErrorMsg = 2;
repeated string groupList = 3;
repeated GroupInfo data = 3;
}
message GetGroupInfoReq{
message SetGroupInfoReq{
string groupID = 1;
string groupName = 2;
string notification = 3;
string introduction = 4;
string faceUrl = 5;
string token = 6;
string operationID = 7;
}
message GetGroupApplicationListReq {
string UID = 1;
string OperationID = 2;
string token = 3;
}
message GetGroupInfoResp{
int32 ErrorCode = 1;
string ErrorMsg = 2;
string groupID = 3;
string groupName = 4;
string groupHeadURL = 5;
string bulletin = 6;
repeated MemberList groupMemberList = 7;
message GetGroupApplicationList_Data_User {
string GroupID = 1;
string FromUserID = 2;
string FromUserNickName = 3;
string FromUserFaceUrl = 4;
string ToUserID = 5;
int64 AddTime = 6;
string RequestMsg = 7;
string HandledMsg = 8;
int32 Type = 9;
int32 HandleStatus = 10;
int32 HandleResult = 11;
}
message MemberList{
string userID = 1;
string nickName = 2;
int32 isAdmin = 3;
message GetGroupApplicationListData {
int32 Count = 1;
repeated GetGroupApplicationList_Data_User User = 2;
}
message GetGroupApplicationListResp {
int32 ErrCode = 1;
string ErrMsg = 2;
GetGroupApplicationListData Data = 3;
}
message DeleteGroupMemberReq{
string groupID = 1;
string token = 2;
string OperationID = 3;
repeated string userIdList = 4;
message TransferGroupOwnerReq {
string GroupID = 1;
string OldOwner = 2;
string NewOwner = 3;
string OperationID = 4;
}
message TransferGroupOwnerResp{
int32 ErrCode = 1;
string ErrMsg = 2;
}
message SetGroupNameReq{
message JoinGroupReq{
string groupID = 1;
string name = 2;
string message = 2;
string token = 3;
string OperationID = 4;
}
message GroupApplicationResponseReq{
string OperationID = 1;
string OwnerID = 2;
string GroupID = 3;
string FromUserID = 4;
string FromUserNickName = 5;
string FromUserFaceUrl = 6;
string ToUserID = 7;
string ToUserNickName = 8;
string ToUserFaceUrl = 9;
int64 AddTime = 10;
string RequestMsg = 11;
string HandledMsg = 12;
int32 Type = 13;
int32 HandleStatus = 14;
int32 HandleResult = 15;
}
message SetGroupBulletinReq{
string groupID = 1;
string bulletin = 2;
string OperationID = 3;
string token = 4;
message GroupApplicationResponseResp{
int32 ErrCode = 1;
string ErrMsg = 2;
}
message SetOwnerGroupNickNameReq{
string groupID = 1;
string nickName = 2;
......@@ -81,37 +131,153 @@ message SetOwnerGroupNickNameReq{
}
message SetGroupHeadImageReq{
message QuitGroupReq{
string groupID = 1;
string headUrl = 2;
string OperationID = 3;
string token = 4;
string operationID = 2;
string token = 3;
}
message MemberExitGroupReq{
message GroupApplicationUserInfo{
string groupID = 1;
string OperationID = 2;
string uid = 2;
string name = 3;
string icon = 4;
string reqMsg = 5;
int64 applicationTime = 6;
int32 flag = 7;
string operatorID = 8;
string handledMsg = 9;
}
message GroupMemberFullInfo {
string userId = 1;
int32 role = 2;
uint64 joinTime = 3;
string nickName = 4;
string faceUrl = 5;
}
message GetGroupMemberListReq {
string groupID = 1;
string token = 2;
string operationID = 3;
int32 filter = 4;
int32 nextSeq = 5;
}
message GetGroupMemberListResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated GroupMemberFullInfo memberList = 3;
int32 nextSeq = 4;
}
message GetGroupMembersInfoReq {
string groupID = 1;
repeated string memberList = 2;
string token = 3;
string operationID = 4;
}
message GetGroupMembersInfoResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated GroupMemberFullInfo memberList = 3;
}
service group{
rpc createGroup(CreateGroupReq) returns(CreateGroupResp);
rpc getGroupList(GetGroupListReq) returns(GetGroupListResp);
rpc getGroupInfo(GetGroupInfoReq)returns(GetGroupInfoResp);
rpc deleteGroupMember(DeleteGroupMemberReq) returns(CommonResp);
rpc setGroupName(SetGroupNameReq) returns(CommonResp);
rpc setGroupBulletin(SetGroupBulletinReq) returns(CommonResp);
rpc setOwnerGroupNickName(SetOwnerGroupNickNameReq) returns(CommonResp);
rpc setGroupHeadImage(SetGroupHeadImageReq) returns(CommonResp);
rpc memberExitGroup(MemberExitGroupReq) returns(CommonResp);
message KickGroupMemberReq {
string groupID = 1;
repeated string uidList = 2;
string reason = 3;
string token = 4;
string operationID = 5;
}
message Id2Result {
string uId = 1;
int32 result = 2; //0 ok; -1 error
}
message KickGroupMemberResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated Id2Result id2result = 3;
}
message getJoinedGroupListReq {
string token = 1;
string operationID = 2;
}
message GroupInfo {
string groupId = 1;
string groupName = 2;
string notification = 3;
string introduction = 4;
string faceUrl = 5;
uint64 createTime = 6;
string ownerId = 7;
uint32 memberCount = 8;
}
message getJoinedGroupListResp{
int32 errorCode = 1;
string errorMsg = 2;
repeated GroupInfo groupList = 3;
}
message inviteUserToGroupReq {
string token = 1;
string operationID = 2;
string groupID = 3;
string reason = 4;
repeated string uidList = 5;
}
message inviteUserToGroupResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated Id2Result id2result = 3; // 0 ok, -1 error
}
message GetGroupAllMemberReq {
string groupID = 1;
string token = 2;
string operationID = 3;
}
message GetGroupAllMemberResp {
int32 errorCode = 1;
string errorMsg = 2;
repeated GroupMemberFullInfo memberList = 3;
}
service group{
rpc createGroup(CreateGroupReq) returns(CreateGroupResp);
rpc joinGroup(JoinGroupReq) returns(CommonResp);
rpc quitGroup(QuitGroupReq) returns(CommonResp);
rpc getGroupsInfo(GetGroupsInfoReq) returns(GetGroupsInfoResp);
rpc setGroupInfo(SetGroupInfoReq) returns(CommonResp);
rpc getGroupApplicationList(GetGroupApplicationListReq) returns(GetGroupApplicationListResp);
rpc transferGroupOwner(TransferGroupOwnerReq) returns(TransferGroupOwnerResp);
rpc groupApplicationResponse(GroupApplicationResponseReq) returns(GroupApplicationResponseResp);
// rpc setOwnerGroupNickName(SetOwnerGroupNickNameReq) returns(CommonResp);
rpc getGroupMemberList(GetGroupMemberListReq) returns(GetGroupMemberListResp);
rpc getGroupMembersInfo(GetGroupMembersInfoReq) returns(GetGroupMembersInfoResp);
rpc kickGroupMember(KickGroupMemberReq) returns (KickGroupMemberResp);
rpc getJoinedGroupList(getJoinedGroupListReq) returns (getJoinedGroupListResp);
rpc inviteUserToGroup(inviteUserToGroupReq) returns (inviteUserToGroupResp);
rpc getGroupAllMember(GetGroupAllMemberReq) returns(GetGroupAllMemberResp);
}
......
......@@ -211,7 +211,9 @@ func init() {
proto.RegisterType((*PushMsgResp)(nil), "push.PushMsgResp")
}
func init() { proto.RegisterFile("push/push.proto", fileDescriptor_ae0042da44e9a7a7) }
func init() {
proto.RegisterFile("push/push.proto", fileDescriptor_ae0042da44e9a7a7)
}
var fileDescriptor_ae0042da44e9a7a7 = []byte{
// 346 bytes of a gzipped FileDescriptorProto
......@@ -241,11 +243,11 @@ var fileDescriptor_ae0042da44e9a7a7 = []byte{
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// PushMsgServiceClient is the client API for PushMsgService service.
//
......@@ -255,10 +257,10 @@ type PushMsgServiceClient interface {
}
type pushMsgServiceClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewPushMsgServiceClient(cc *grpc.ClientConn) PushMsgServiceClient {
func NewPushMsgServiceClient(cc grpc.ClientConnInterface) PushMsgServiceClient {
return &pushMsgServiceClient{cc}
}
......
......@@ -262,7 +262,9 @@ func init() {
proto.RegisterType((*SingleMsgToUser)(nil), "relay.SingleMsgToUser")
}
func init() { proto.RegisterFile("relay/relay.proto", fileDescriptor_b6da3b5c0d1535b3) }
func init() {
proto.RegisterFile("relay/relay.proto", fileDescriptor_b6da3b5c0d1535b3)
}
var fileDescriptor_b6da3b5c0d1535b3 = []byte{
// 381 bytes of a gzipped FileDescriptorProto
......@@ -294,11 +296,11 @@ var fileDescriptor_b6da3b5c0d1535b3 = []byte{
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// OnlineMessageRelayServiceClient is the client API for OnlineMessageRelayService service.
//
......@@ -308,10 +310,10 @@ type OnlineMessageRelayServiceClient interface {
}
type onlineMessageRelayServiceClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewOnlineMessageRelayServiceClient(cc *grpc.ClientConn) OnlineMessageRelayServiceClient {
func NewOnlineMessageRelayServiceClient(cc grpc.ClientConnInterface) OnlineMessageRelayServiceClient {
return &onlineMessageRelayServiceClient{cc}
}
......
......@@ -435,7 +435,9 @@ func init() {
proto.RegisterType((*UpdateUserInfoReq)(nil), "user.UpdateUserInfoReq")
}
func init() { proto.RegisterFile("user/user.proto", fileDescriptor_ed89022014131a74) }
func init() {
proto.RegisterFile("user/user.proto", fileDescriptor_ed89022014131a74)
}
var fileDescriptor_ed89022014131a74 = []byte{
// 416 bytes of a gzipped FileDescriptorProto
......@@ -469,11 +471,11 @@ var fileDescriptor_ed89022014131a74 = []byte{
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// UserClient is the client API for User service.
//
......@@ -484,10 +486,10 @@ type UserClient interface {
}
type userClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewUserClient(cc *grpc.ClientConn) UserClient {
func NewUserClient(cc grpc.ClientConnInterface) UserClient {
return &userClient{cc}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册