From b8f457f56e6a7e9ed80a281e4025d6af53892733 Mon Sep 17 00:00:00 2001 From: guzeng Date: Tue, 31 Aug 2021 11:43:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0getAddressInfo=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.go | 4 ++++ user.pb.go | 4 ++++ user.proto | 1 + 3 files changed, 9 insertions(+) diff --git a/common.go b/common.go index 4d1ea07..6bf19bd 100644 --- a/common.go +++ b/common.go @@ -42,6 +42,10 @@ type GetUserReq struct { UserId string } +type GetAddressReq struct { + Req + AddressId string +} type Res struct { Errcode int Errmsg string diff --git a/user.pb.go b/user.pb.go index d473f14..e57d53b 100644 --- a/user.pb.go +++ b/user.pb.go @@ -481,6 +481,7 @@ type UserService interface { GetBusiness(in *Request, out *Response) error GetById(in *Request, out *Response) error GetBusinessInfo(in *Request, out *Response) error + GetAddressInfo(in *Request, out *Response) error } // AcceptUserServiceClient accepts connections on the listener and serves requests @@ -579,6 +580,9 @@ func (c *UserServiceClient) GetById(in *Request, out *Response) error { func (c *UserServiceClient) GetBusinessInfo(in *Request, out *Response) error { return c.Call("UserService.GetBusinessInfo", in, out) } +func (c *UserServiceClient) GetAddressInfo(in *Request, out *Response) error { + return c.Call("UserService.GetAddressInfo", 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 279e7cc..a37f2d8 100644 --- a/user.proto +++ b/user.proto @@ -91,4 +91,5 @@ service UserService { rpc getBusiness(Request) returns (Response); // 查询商户 rpc getById(Request) returns (Response); // 查询用户 rpc getBusinessInfo(Request) returns (Response); // 查询分销商 + rpc getAddressInfo(Request) returns (Response); // 查询地址 } \ No newline at end of file