Browse Source

增加绑定方法

master v0.8.0
guzeng 3 years ago
parent
commit
7bb5070ef4
2 changed files with 10 additions and 0 deletions
  1. +8
    -0
      user.pb.go
  2. +2
    -0
      user.proto

+ 8
- 0
user.pb.go View File

@ -537,6 +537,8 @@ type UserService interface {
AddUserCoupon(in *Request, out *Response) error AddUserCoupon(in *Request, out *Response) error
UpdateUserCoupon(in *Request, out *Response) error UpdateUserCoupon(in *Request, out *Response) error
FavoriteProduct(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 // 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 { func (c *UserServiceClient) FavoriteProduct(in *Request, out *Response) error {
return c.Call("UserService.FavoriteProduct", in, out) 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. // DialUserService connects to an UserService at the specified network address.
func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) { func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) {


+ 2
- 0
user.proto View File

@ -112,4 +112,6 @@ service UserService {
rpc addUserCoupon(Request) returns (Response); // rpc addUserCoupon(Request) returns (Response); //
rpc updateUserCoupon(Request) returns (Response); // rpc updateUserCoupon(Request) returns (Response); //
rpc favoriteProduct(Request) returns (Response); // rpc favoriteProduct(Request) returns (Response); //
rpc Fans(Request) returns (Response); //
rpc LockFans(Request) returns (Response); //
} }

Loading…
Cancel
Save