diff --git a/cmd/robot/pack.go b/cmd/robot/pack.go index ff7655d08..80c1b8912 100644 --- a/cmd/robot/pack.go +++ b/cmd/robot/pack.go @@ -15,7 +15,7 @@ func (r *Robot) handlePackMsg(msg *pb.UserMessage) { //添加好友 func (r *Robot) QueryUserPack() { - req := &pb.QueryUserPackReq{IType: 1} + req := &pb.GetlistReq{IType: 1} head := &pb.UserMessage{MainType: "pack", SubType: "queryuserpackreq"} defer traceFunc(head.MainType, head.SubType, r.user.UserData.GetUserId(), req) err := r.SendToClient(head, req) @@ -25,7 +25,7 @@ func (r *Robot) QueryUserPack() { } func (r *Robot) handleQueryUserPack(msg *pb.UserMessage) { - rsp := &pb.QueryUserPackResp{} + rsp := &pb.GetlistResp{} if !comm.ProtoDecode(msg, rsp) { return } diff --git a/lego/base/rpcx/options.go b/lego/base/rpcx/options.go index 0950c6431..03fff09c3 100644 --- a/lego/base/rpcx/options.go +++ b/lego/base/rpcx/options.go @@ -13,9 +13,9 @@ import ( type Option func(*Options) type Options struct { - ConfPath string - Version string //服务版本 - Setting core.ServiceSttings + ConfPath string //配置文件路径 + Version string //服务版本 + Setting core.ServiceSttings //服务参数配置 } func SetConfPath(v string) Option {