From 7bb5070ef4cd6cd67a52cd1c09b01ecde4dcb556 Mon Sep 17 00:00:00 2001 From: guzeng Date: Sat, 23 Oct 2021 17:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BB=91=E5=AE=9A=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user.pb.go | 8 ++++++++ user.proto | 2 ++ 2 files changed, 10 insertions(+) diff --git a/user.pb.go b/user.pb.go index 3e6ea20..57ed49f 100644 --- a/user.pb.go +++ b/user.pb.go @@ -537,6 +537,8 @@ type UserService interface { AddUserCoupon(in *Request, out *Response) error UpdateUserCoupon(in *Request, out *Response) error FavoriteProduct(in *Request, out *Response) error + Fans(in *Request, out *Response) error + LockFans(in *Request, out *Response) error } // AcceptUserServiceClient accepts connections on the listener and serves requests @@ -683,6 +685,12 @@ func (c *UserServiceClient) UpdateUserCoupon(in *Request, out *Response) error { func (c *UserServiceClient) FavoriteProduct(in *Request, out *Response) error { return c.Call("UserService.FavoriteProduct", in, out) } +func (c *UserServiceClient) Fans(in *Request, out *Response) error { + return c.Call("UserService.Fans", in, out) +} +func (c *UserServiceClient) LockFans(in *Request, out *Response) error { + return c.Call("UserService.LockFans", 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 6464258..67efaaa 100644 --- a/user.proto +++ b/user.proto @@ -112,4 +112,6 @@ service UserService { rpc addUserCoupon(Request) returns (Response); // 添加用户优惠券记录 rpc updateUserCoupon(Request) returns (Response); // 更新用户优惠券记录 rpc favoriteProduct(Request) returns (Response); // 收藏商品 + rpc Fans(Request) returns (Response); // 弱绑定 + rpc LockFans(Request) returns (Response); // 强绑定 } \ No newline at end of file