From 22c85a2a18b7161edb8bcda6d9ebedffe965b0e5 Mon Sep 17 00:00:00 2001 From: guzeng Date: Tue, 14 Sep 2021 11:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9pb=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user.pb.go | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/user.pb.go b/user.pb.go index d100c7a..4b6258b 100644 --- a/user.pb.go +++ b/user.pb.go @@ -150,6 +150,8 @@ type UserResponse struct { Usercode *string `protobuf:"bytes,11,opt,name=usercode" json:"usercode,omitempty"` GroupId *string `protobuf:"bytes,12,opt,name=group_id" json:"group_id,omitempty"` Type *string `protobuf:"bytes,13,opt,name=type" json:"type,omitempty"` + ThirdId *string `protobuf:"bytes,14,opt,name=third_id" json:"third_id,omitempty"` + Platform *string `protobuf:"bytes,15,opt,name=platform" json:"platform,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -248,6 +250,20 @@ func (m *UserResponse) GetType() string { return "" } +func (m *UserResponse) GetThirdId() string { + if m != nil && m.ThirdId != nil { + return *m.ThirdId + } + return "" +} + +func (m *UserResponse) GetPlatform() string { + if m != nil && m.Platform != nil { + return *m.Platform + } + return "" +} + // 用户登录请求结构 type LoginRequest struct { Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"` @@ -297,6 +313,8 @@ type LoginResponse struct { Usercode *string `protobuf:"bytes,12,opt,name=usercode" json:"usercode,omitempty"` GroupId *string `protobuf:"bytes,13,opt,name=group_id" json:"group_id,omitempty"` Type *string `protobuf:"bytes,14,opt,name=type" json:"type,omitempty"` + ThirdId *string `protobuf:"bytes,15,opt,name=third_id" json:"third_id,omitempty"` + Platform *string `protobuf:"bytes,16,opt,name=platform" json:"platform,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -402,6 +420,20 @@ func (m *LoginResponse) GetType() string { return "" } +func (m *LoginResponse) GetThirdId() string { + if m != nil && m.ThirdId != nil { + return *m.ThirdId + } + return "" +} + +func (m *LoginResponse) GetPlatform() string { + if m != nil && m.Platform != nil { + return *m.Platform + } + return "" +} + // 信息请求结构 type Request struct { Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` @@ -483,6 +515,8 @@ type UserService interface { GetById(in *Request, out *Response) error GetBusinessInfo(in *Request, out *Response) error GetAddressInfo(in *Request, out *Response) error + GetUserScore(in *Request, out *Response) error + GetUserRedEnvelope(in *Request, out *Response) error } // AcceptUserServiceClient accepts connections on the listener and serves requests @@ -587,6 +621,12 @@ func (c *UserServiceClient) GetBusinessInfo(in *Request, out *Response) error { func (c *UserServiceClient) GetAddressInfo(in *Request, out *Response) error { return c.Call("UserService.GetAddressInfo", in, out) } +func (c *UserServiceClient) GetUserScore(in *Request, out *Response) error { + return c.Call("UserService.GetUserScore", in, out) +} +func (c *UserServiceClient) GetUserRedEnvelope(in *Request, out *Response) error { + return c.Call("UserService.GetUserRedEnvelope", in, out) +} // DialUserService connects to an UserService at the specified network address. func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) {