Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into liwei
This commit is contained in:
commit
d1ae2a1878
@ -15,14 +15,14 @@ var (
|
|||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
subType: friend.FriendSubTypeList,
|
subType: friend.FriendSubTypeList,
|
||||||
req: &pb.FriendListReq{},
|
req: &pb.FriendListReq{},
|
||||||
rsp: &pb.FriendListRsp{},
|
rsp: &pb.FriendListResp{},
|
||||||
enabled: true,
|
// enabled: true,
|
||||||
}, {
|
}, {
|
||||||
//blacklist
|
//blacklist
|
||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
subType: friend.FriendSubTypeBlacklist,
|
subType: friend.FriendSubTypeBlacklist,
|
||||||
req: &pb.FriendBlackListReq{},
|
req: &pb.FriendBlackListReq{},
|
||||||
rsp: &pb.FriendBlackListRsp{},
|
rsp: &pb.FriendBlackListResp{},
|
||||||
}, {
|
}, {
|
||||||
//search
|
//search
|
||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
@ -30,33 +30,33 @@ var (
|
|||||||
req: &pb.FriendSearchReq{
|
req: &pb.FriendSearchReq{
|
||||||
NickName: "", //设置测试参数
|
NickName: "", //设置测试参数
|
||||||
},
|
},
|
||||||
rsp: &pb.FriendSearchRsp{},
|
rsp: &pb.FriendSearchResp{},
|
||||||
enabled: true,
|
// enabled: true,
|
||||||
}, {
|
}, {
|
||||||
//apply
|
//apply
|
||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
subType: friend.FriendSubTypeApply,
|
subType: friend.FriendSubTypeApply,
|
||||||
req: &pb.FriendApplyReq{},
|
req: &pb.FriendApplyReq{},
|
||||||
rsp: &pb.FriendApplyRsp{},
|
rsp: &pb.FriendApplyResp{},
|
||||||
// enabled: true,
|
// enabled: true,
|
||||||
}, {
|
}, {
|
||||||
//applylist
|
//applylist
|
||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
subType: friend.FriendSubTypeApplyList,
|
subType: friend.FriendSubTypeApplyList,
|
||||||
req: &pb.FriendApplyListReq{},
|
req: &pb.FriendApplyListReq{},
|
||||||
rsp: &pb.FriendApplyListRsp{},
|
rsp: &pb.FriendApplyListResp{},
|
||||||
}, {
|
}, {
|
||||||
//agree
|
//agree
|
||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
subType: friend.FriendSubTypeAgree,
|
subType: friend.FriendSubTypeAgree,
|
||||||
req: &pb.FriendAgreeReq{},
|
req: &pb.FriendAgreeReq{},
|
||||||
rsp: &pb.FriendAgreeRsp{},
|
rsp: &pb.FriendAgreeResp{},
|
||||||
}, {
|
}, {
|
||||||
//refuse
|
//refuse
|
||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
subType: friend.FriendSubTypeRefuse,
|
subType: friend.FriendSubTypeRefuse,
|
||||||
req: &pb.FriendAgreeReq{},
|
req: &pb.FriendAgreeReq{},
|
||||||
rsp: &pb.FriendAgreeRsp{},
|
rsp: &pb.FriendAgreeResp{},
|
||||||
}, {
|
}, {
|
||||||
//addblack
|
//addblack
|
||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
@ -64,14 +64,14 @@ var (
|
|||||||
req: &pb.FriendBlackAddReq{
|
req: &pb.FriendBlackAddReq{
|
||||||
FriendId: "0_62be9f40f67327fb53039b70",
|
FriendId: "0_62be9f40f67327fb53039b70",
|
||||||
},
|
},
|
||||||
rsp: &pb.FriendBlackAddRsp{},
|
rsp: &pb.FriendBlackAddResp{},
|
||||||
// enabled: true,
|
// enabled: true,
|
||||||
}, {
|
}, {
|
||||||
//delblack
|
//delblack
|
||||||
mainType: string(comm.ModuleFriend),
|
mainType: string(comm.ModuleFriend),
|
||||||
subType: friend.FriendSubTypeDelBlack,
|
subType: friend.FriendSubTypeDelBlack,
|
||||||
req: &pb.FriendDelBlackReq{},
|
req: &pb.FriendDelBlackReq{},
|
||||||
rsp: &pb.FriendDelBlackRsp{},
|
rsp: &pb.FriendDelBlackResp{},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -17,14 +17,14 @@ var (
|
|||||||
mainType: string(comm.ModuleHero),
|
mainType: string(comm.ModuleHero),
|
||||||
subType: hero.HeroSubTypeList,
|
subType: hero.HeroSubTypeList,
|
||||||
req: &pb.HeroListReq{},
|
req: &pb.HeroListReq{},
|
||||||
rsp: &pb.HeroListRsp{},
|
rsp: &pb.HeroListRsp{},
|
||||||
print: func(rsp proto.Message) {
|
print: func(rsp proto.Message) {
|
||||||
out := rsp.(*pb.HeroListRsp)
|
out := rsp.(*pb.HeroListRsp)
|
||||||
for i, v := range out.List {
|
for i, v := range out.List {
|
||||||
fmt.Printf("%d- %v\n", (i + 1), v)
|
fmt.Printf("%d- %v\n", (i + 1), v)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// enabled: true,
|
enabled: true,
|
||||||
}, {
|
}, {
|
||||||
mainType: string(comm.ModuleHero),
|
mainType: string(comm.ModuleHero),
|
||||||
subType: hero.HeroSubTypeInfo,
|
subType: hero.HeroSubTypeInfo,
|
||||||
|
@ -43,7 +43,7 @@ func (r *Robot) AccountLogin() {
|
|||||||
Account: r.opts.Account,
|
Account: r.opts.Account,
|
||||||
Sid: r.opts.ServerId,
|
Sid: r.opts.ServerId,
|
||||||
},
|
},
|
||||||
rsp: &pb.UserLoginResp{},
|
rsp: &pb.UserLoginResp{},
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ var notify_builders = []*TestCase{
|
|||||||
//create
|
//create
|
||||||
mainType: comm.MainTypeNotify,
|
mainType: comm.MainTypeNotify,
|
||||||
subType: comm.SubTypeErrorNotify,
|
subType: comm.SubTypeErrorNotify,
|
||||||
rsp: &pb.NotifyErrorNotifyPush{},
|
rsp: &pb.NotifyErrorNotifyPush{},
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ var pack_builders = []*TestCase{
|
|||||||
mainType: string(comm.ModulePack),
|
mainType: string(comm.ModulePack),
|
||||||
subType: "queryuserpackreq",
|
subType: "queryuserpackreq",
|
||||||
// req: &pb.Pack_Getlist_Req{IType: 1},
|
// req: &pb.Pack_Getlist_Req{IType: 1},
|
||||||
rsp: &pb.UserCreateRsp{},
|
rsp: &pb.UserCreateRsp{},
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,8 @@ var user_builders = []*TestCase{
|
|||||||
ResType: comm.ResGold,
|
ResType: comm.ResGold,
|
||||||
Count: 100,
|
Count: 100,
|
||||||
},
|
},
|
||||||
rsp: &pb.UserAddResResp{},
|
rsp: &pb.UserAddResResp{},
|
||||||
enabled: true,
|
// enabled: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,15 +21,15 @@ func (this *apiComp) Addblack(session comm.IUserSession, req *pb.FriendBlackAddR
|
|||||||
err error
|
err error
|
||||||
self *pb.DBFriend
|
self *pb.DBFriend
|
||||||
target *pb.DBFriend
|
target *pb.DBFriend
|
||||||
rsp *pb.FriendBlackAddRsp
|
Resp *pb.FriendBlackAddResp
|
||||||
)
|
)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
rsp = &pb.FriendBlackAddRsp{
|
Resp = &pb.FriendBlackAddResp{
|
||||||
FriendId: req.FriendId,
|
FriendId: req.FriendId,
|
||||||
UserId: session.GetUserId(),
|
UserId: session.GetUserId(),
|
||||||
}
|
}
|
||||||
session.SendMsg(string(this.module.GetType()), FriendSubTypeAddBlack, rsp)
|
session.SendMsg(string(this.module.GetType()), FriendSubTypeAddBlack, Resp)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
self = this.module.modelFriend.GetFriend(session.GetUserId())
|
self = this.module.modelFriend.GetFriend(session.GetUserId())
|
||||||
|
@ -22,15 +22,15 @@ func (this *apiComp) Agree(session comm.IUserSession, req *pb.FriendAgreeReq) (c
|
|||||||
err error
|
err error
|
||||||
self *pb.DBFriend
|
self *pb.DBFriend
|
||||||
target *pb.DBFriend
|
target *pb.DBFriend
|
||||||
rsp *pb.FriendAgreeRsp
|
Resp *pb.FriendAgreeResp
|
||||||
optNum int32
|
optNum int32
|
||||||
)
|
)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
rsp = &pb.FriendAgreeRsp{
|
Resp = &pb.FriendAgreeResp{
|
||||||
Num: optNum,
|
Num: optNum,
|
||||||
}
|
}
|
||||||
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeAgree, rsp)
|
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeAgree, Resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
return
|
return
|
||||||
|
@ -22,21 +22,21 @@ func (this *apiComp) Apply(session comm.IUserSession, req *pb.FriendApplyReq) (c
|
|||||||
err error
|
err error
|
||||||
self *pb.DBFriend
|
self *pb.DBFriend
|
||||||
target *pb.DBFriend
|
target *pb.DBFriend
|
||||||
rsp *pb.FriendApplyRsp
|
Resp *pb.FriendApplyResp
|
||||||
)
|
)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
utils.TraceFunc(session.GetUserId(), string(this.module.GetType()), FriendSubTypeApply, req, rsp)
|
utils.TraceFunc(session.GetUserId(), string(this.module.GetType()), FriendSubTypeApply, req, Resp)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if code == pb.ErrorCode_Success {
|
if code == pb.ErrorCode_Success {
|
||||||
rsp = &pb.FriendApplyRsp{
|
Resp = &pb.FriendApplyResp{
|
||||||
UserId: session.GetUserId(),
|
UserId: session.GetUserId(),
|
||||||
FriendId: req.FriendId,
|
FriendId: req.FriendId,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeApply, rsp)
|
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeApply, Resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
return
|
return
|
||||||
|
@ -15,17 +15,17 @@ func (this *apiComp) ApplyList(session comm.IUserSession, req *pb.FriendApplyLis
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
self *pb.DBFriend
|
self *pb.DBFriend
|
||||||
rsp *pb.FriendApplyListRsp
|
Resp *pb.FriendApplyListResp
|
||||||
list []*pb.FriendBase
|
list []*pb.FriendBase
|
||||||
)
|
)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if code == pb.ErrorCode_Success {
|
if code == pb.ErrorCode_Success {
|
||||||
rsp = &pb.FriendApplyListRsp{
|
Resp = &pb.FriendApplyListResp{
|
||||||
List: list,
|
List: list,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := session.SendMsg(string(this.module.GetType()), FriendSubTypeApplyList, rsp); err != nil {
|
if err := session.SendMsg(string(this.module.GetType()), FriendSubTypeApplyList, Resp); err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
@ -16,16 +16,16 @@ func (this *apiComp) Blacklist(session comm.IUserSession, req *pb.FriendBlackLis
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
self *pb.DBFriend
|
self *pb.DBFriend
|
||||||
rsp *pb.FriendBlackListRsp
|
Resp *pb.FriendBlackListResp
|
||||||
list []*pb.FriendBase
|
list []*pb.FriendBase
|
||||||
)
|
)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
rsp = &pb.FriendBlackListRsp{
|
Resp = &pb.FriendBlackListResp{
|
||||||
Friends: list,
|
Friends: list,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeBlacklist, rsp)
|
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeBlacklist, Resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
return
|
return
|
||||||
|
@ -20,16 +20,16 @@ func (this *apiComp) Delblack(session comm.IUserSession, req *pb.FriendDelBlackR
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
self *pb.DBFriend
|
self *pb.DBFriend
|
||||||
rsp *pb.FriendDelBlackRsp
|
Resp *pb.FriendDelBlackResp
|
||||||
)
|
)
|
||||||
defer func() {
|
defer func() {
|
||||||
if code == pb.ErrorCode_Success {
|
if code == pb.ErrorCode_Success {
|
||||||
rsp = &pb.FriendDelBlackRsp{
|
Resp = &pb.FriendDelBlackResp{
|
||||||
FriendId: req.FriendId,
|
FriendId: req.FriendId,
|
||||||
UserId: session.GetUserId(),
|
UserId: session.GetUserId(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeDelBlack, rsp)
|
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeDelBlack, Resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
return
|
return
|
||||||
|
@ -15,15 +15,15 @@ func (this *apiComp) ListCheck(session comm.IUserSession, req *pb.FriendListReq)
|
|||||||
func (this *apiComp) List(session comm.IUserSession, req *pb.FriendListReq) (code pb.ErrorCode, data proto.Message) {
|
func (this *apiComp) List(session comm.IUserSession, req *pb.FriendListReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
var (
|
var (
|
||||||
self *pb.DBFriend
|
self *pb.DBFriend
|
||||||
rsp *pb.FriendListRsp
|
Resp *pb.FriendListResp
|
||||||
list []*pb.FriendBase
|
list []*pb.FriendBase
|
||||||
)
|
)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
rsp = &pb.FriendListRsp{
|
Resp = &pb.FriendListResp{
|
||||||
List: list,
|
List: list,
|
||||||
}
|
}
|
||||||
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeList, rsp)
|
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeList, Resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
return
|
return
|
||||||
|
@ -22,15 +22,15 @@ func (this *apiComp) Refuse(session comm.IUserSession, req *pb.FriendRefuseReq)
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
self *pb.DBFriend
|
self *pb.DBFriend
|
||||||
rsp *pb.FriendRefuseRsp
|
Resp *pb.FriendRefuseResp
|
||||||
optNum int32
|
optNum int32
|
||||||
)
|
)
|
||||||
defer func() {
|
defer func() {
|
||||||
rsp = &pb.FriendRefuseRsp{
|
Resp = &pb.FriendRefuseResp{
|
||||||
Num: optNum,
|
Num: optNum,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeRefuse, rsp)
|
err := session.SendMsg(string(this.module.GetType()), FriendSubTypeRefuse, Resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
return
|
return
|
||||||
|
@ -18,16 +18,16 @@ func (this *apiComp) SearchCheck(session comm.IUserSession, req *pb.FriendSearch
|
|||||||
//搜索
|
//搜索
|
||||||
func (this *apiComp) Search(session comm.IUserSession, req *pb.FriendSearchReq) (code pb.ErrorCode, data proto.Message) {
|
func (this *apiComp) Search(session comm.IUserSession, req *pb.FriendSearchReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
var (
|
var (
|
||||||
rsp *pb.FriendSearchRsp
|
Resp *pb.FriendSearchResp
|
||||||
friend *pb.FriendBase
|
friend *pb.FriendBase
|
||||||
)
|
)
|
||||||
defer func() {
|
defer func() {
|
||||||
if code == pb.ErrorCode_Success {
|
if code == pb.ErrorCode_Success {
|
||||||
rsp = &pb.FriendSearchRsp{
|
Resp = &pb.FriendSearchResp{
|
||||||
Friend: friend,
|
Friend: friend,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := session.SendMsg(string(this.module.GetType()), FriendSubTypeSearch, rsp); err != nil {
|
if err := session.SendMsg(string(this.module.GetType()), FriendSubTypeSearch, Resp); err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -99,7 +99,7 @@ type DBHero struct {
|
|||||||
EquipID []string `protobuf:"bytes,17,rep,name=equipID,proto3" json:"equipID" bson:"equipID"` //装备 objID
|
EquipID []string `protobuf:"bytes,17,rep,name=equipID,proto3" json:"equipID" bson:"equipID"` //装备 objID
|
||||||
ResonateNum int32 `protobuf:"varint,18,opt,name=resonateNum,proto3" json:"resonateNum" bson:"resonateNum"` //共鸣次数
|
ResonateNum int32 `protobuf:"varint,18,opt,name=resonateNum,proto3" json:"resonateNum" bson:"resonateNum"` //共鸣次数
|
||||||
DistributionResonate int32 `protobuf:"varint,19,opt,name=distributionResonate,proto3" json:"distributionResonate" bson:"distributionResonate"` //分配的共鸣能量
|
DistributionResonate int32 `protobuf:"varint,19,opt,name=distributionResonate,proto3" json:"distributionResonate" bson:"distributionResonate"` //分配的共鸣能量
|
||||||
Energy map[int32]int32 `protobuf:"bytes,20,rep,name=energy,proto3" json:"energy" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // @go_tags(`bson:"energy"`)能量分配到哪里
|
Energy map[int32]int32 `protobuf:"bytes,20,rep,name=energy,proto3" json:"energy" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // @go_tags(`bson:"energy"`)能量分配到哪里[1,0]
|
||||||
SameCount int32 `protobuf:"varint,21,opt,name=sameCount,proto3" json:"sameCount" bson:"sameCount"` // 卡片叠加数量
|
SameCount int32 `protobuf:"varint,21,opt,name=sameCount,proto3" json:"sameCount" bson:"sameCount"` // 卡片叠加数量
|
||||||
SuiteId int32 `protobuf:"varint,22,opt,name=suiteId,proto3" json:"suiteId" bson:"suiteId"` // 套装Id
|
SuiteId int32 `protobuf:"varint,22,opt,name=suiteId,proto3" json:"suiteId" bson:"suiteId"` // 套装Id
|
||||||
SuiteExtId int32 `protobuf:"varint,23,opt,name=suiteExtId,proto3" json:"suiteExtId"` // go_tags(`bson:"suiteExtId"`) 扩展套装Id
|
SuiteExtId int32 `protobuf:"varint,23,opt,name=suiteExtId,proto3" json:"suiteExtId"` // go_tags(`bson:"suiteExtId"`) 扩展套装Id
|
||||||
|
@ -14,13 +14,13 @@ message FriendBase {
|
|||||||
//好友列表
|
//好友列表
|
||||||
message FriendListReq {}
|
message FriendListReq {}
|
||||||
|
|
||||||
message FriendListRsp { repeated FriendBase list = 1; }
|
message FriendListResp { repeated FriendBase list = 1; }
|
||||||
|
|
||||||
//申请好友
|
//申请好友
|
||||||
message FriendApplyReq {
|
message FriendApplyReq {
|
||||||
string friendId = 1; //好友ID
|
string friendId = 1; //好友ID
|
||||||
}
|
}
|
||||||
message FriendApplyRsp {
|
message FriendApplyResp {
|
||||||
string userId = 1; //用户ID
|
string userId = 1; //用户ID
|
||||||
string friendId = 2; //好友ID
|
string friendId = 2; //好友ID
|
||||||
}
|
}
|
||||||
@ -30,7 +30,7 @@ message FriendDelReq {
|
|||||||
string friendId = 1; //好友ID
|
string friendId = 1; //好友ID
|
||||||
}
|
}
|
||||||
|
|
||||||
message FriendDelRsp {
|
message FriendDelResp {
|
||||||
string friendId = 1; //好友ID
|
string friendId = 1; //好友ID
|
||||||
string userId = 2; //用户ID
|
string userId = 2; //用户ID
|
||||||
}
|
}
|
||||||
@ -39,7 +39,7 @@ message FriendDelRsp {
|
|||||||
message FriendAgreeReq {
|
message FriendAgreeReq {
|
||||||
repeated string friendIds = 1; //被同意的用户
|
repeated string friendIds = 1; //被同意的用户
|
||||||
}
|
}
|
||||||
message FriendAgreeRsp {
|
message FriendAgreeResp {
|
||||||
int32 Num = 1; //操作的数量
|
int32 Num = 1; //操作的数量
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,30 +47,30 @@ message FriendAgreeRsp {
|
|||||||
message FriendRefuseReq {
|
message FriendRefuseReq {
|
||||||
repeated string friendIds = 1; //被拒绝的用户
|
repeated string friendIds = 1; //被拒绝的用户
|
||||||
}
|
}
|
||||||
message FriendRefuseRsp {
|
message FriendRefuseResp {
|
||||||
int32 Num = 1; //操作的数量
|
int32 Num = 1; //操作的数量
|
||||||
}
|
}
|
||||||
|
|
||||||
//好友申请列表
|
//好友申请列表
|
||||||
message FriendApplyListReq {}
|
message FriendApplyListReq {}
|
||||||
message FriendApplyListRsp { repeated FriendBase list = 1; }
|
message FriendApplyListResp { repeated FriendBase list = 1; }
|
||||||
|
|
||||||
//好友搜索
|
//好友搜索
|
||||||
message FriendSearchReq {
|
message FriendSearchReq {
|
||||||
string nickName = 1; //好友昵称
|
string nickName = 1; //好友昵称
|
||||||
}
|
}
|
||||||
|
|
||||||
message FriendSearchRsp { FriendBase friend = 1; }
|
message FriendSearchResp { FriendBase friend = 1; }
|
||||||
|
|
||||||
//黑名单
|
//黑名单
|
||||||
message FriendBlackListReq {}
|
message FriendBlackListReq {}
|
||||||
|
|
||||||
message FriendBlackListRsp { repeated FriendBase friends = 1; }
|
message FriendBlackListResp { repeated FriendBase friends = 1; }
|
||||||
|
|
||||||
//添加黑名单
|
//添加黑名单
|
||||||
message FriendBlackAddReq { string friendId = 1; }
|
message FriendBlackAddReq { string friendId = 1; }
|
||||||
|
|
||||||
message FriendBlackAddRsp {
|
message FriendBlackAddResp {
|
||||||
string friendId = 1;
|
string friendId = 1;
|
||||||
string userId = 2;
|
string userId = 2;
|
||||||
}
|
}
|
||||||
@ -78,7 +78,7 @@ message FriendBlackAddRsp {
|
|||||||
//删除黑名单
|
//删除黑名单
|
||||||
message FriendDelBlackReq { string friendId = 1; }
|
message FriendDelBlackReq { string friendId = 1; }
|
||||||
|
|
||||||
message FriendDelBlackRsp {
|
message FriendDelBlackResp {
|
||||||
string friendId = 1;
|
string friendId = 1;
|
||||||
string userId = 2;
|
string userId = 2;
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ message FriendDelBlackRsp {
|
|||||||
//接收
|
//接收
|
||||||
message FriendReceiveReq { string friendId = 1; }
|
message FriendReceiveReq { string friendId = 1; }
|
||||||
|
|
||||||
message FriendReceiveRsp {
|
message FriendReceiveResp {
|
||||||
string friendId = 1;
|
string friendId = 1;
|
||||||
string userId = 2;
|
string userId = 2;
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@ message FriendReceiveRsp {
|
|||||||
//赠送
|
//赠送
|
||||||
message FriendGiveReq { string friendId = 1; }
|
message FriendGiveReq { string friendId = 1; }
|
||||||
|
|
||||||
message FriendGiveRsp {
|
message FriendGiveResp {
|
||||||
string friendId = 1;
|
string friendId = 1;
|
||||||
string userId = 2;
|
string userId = 2;
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ message FriendGiveRsp {
|
|||||||
//好友数量
|
//好友数量
|
||||||
message FriendTotalReq { string friendId = 1; }
|
message FriendTotalReq { string friendId = 1; }
|
||||||
|
|
||||||
message FriendTotalRsp {
|
message FriendTotalResp {
|
||||||
string friendId = 1;
|
string friendId = 1;
|
||||||
int32 total = 2; //好友数量
|
int32 total = 2; //好友数量
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user