From 121833933fbf085b10e94506c264d98d2abd2f59 Mon Sep 17 00:00:00 2001 From: guzeng Date: Tue, 6 Apr 2021 17:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E6=88=B7=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user.pb.go | 4 ++++ user.proto | 1 + 2 files changed, 5 insertions(+) diff --git a/user.pb.go b/user.pb.go index 1c4df8d..2db43eb 100644 --- a/user.pb.go +++ b/user.pb.go @@ -452,6 +452,7 @@ type UserService interface { GetByUsercode(in *UserInfoByUsercode, out *UserResponse) error BindThird(in *Request, out *Response) error GetThird(in *Request, out *Response) error + GetBusiness(in *Request, out *Response) error } // AcceptUserServiceClient accepts connections on the listener and serves requests @@ -541,6 +542,9 @@ func (c *UserServiceClient) BindThird(in *Request, out *Response) error { func (c *UserServiceClient) GetThird(in *Request, out *Response) error { return c.Call("UserService.GetThird", in, out) } +func (c *UserServiceClient) GetBusiness(in *Request, out *Response) error { + return c.Call("UserService.GetBusiness", in, out) +} // DialUserService connects to an UserService at the specified network address. func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) { diff --git a/user.proto b/user.proto index 729b243..905707b 100644 --- a/user.proto +++ b/user.proto @@ -83,4 +83,5 @@ service UserService { rpc getByUsercode (UserInfoByUsercode) returns (UserResponse); // 使用usercode查询用户 rpc bindThird (Request) returns (Response); // 绑定第三方账号 rpc getThird(Request) returns (Response); // 查询第三方账号 + rpc getBusiness(Request) returns (Response); // 查询商户 } \ No newline at end of file