Browse Source

增加favoriteProduct方法

master
guzeng 3 years ago
parent
commit
07041e3a0c
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      user.pb.go
  2. +1
    -0
      user.proto

+ 4
- 0
user.pb.go View File

@ -536,6 +536,7 @@ type UserService interface {
AddUserRedEnvelopeLog(in *Request, out *Response) error
AddUserCoupon(in *Request, out *Response) error
UpdateUserCoupon(in *Request, out *Response) error
FavoriteProduct(in *Request, out *Response) error
}
// AcceptUserServiceClient accepts connections on the listener and serves requests
@ -679,6 +680,9 @@ func (c *UserServiceClient) AddUserCoupon(in *Request, out *Response) error {
func (c *UserServiceClient) UpdateUserCoupon(in *Request, out *Response) error {
return c.Call("UserService.UpdateUserCoupon", in, out)
}
func (c *UserServiceClient) FavoriteProduct(in *Request, out *Response) error {
return c.Call("UserService.FavoriteProduct", in, out)
}
// DialUserService connects to an UserService at the specified network address.
func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) {


+ 1
- 0
user.proto View File

@ -111,4 +111,5 @@ service UserService {
rpc addUserRedEnvelopeLog(Request) returns (Response); //
rpc addUserCoupon(Request) returns (Response); //
rpc updateUserCoupon(Request) returns (Response); //
rpc favoriteProduct(Request) returns (Response); //
}

Loading…
Cancel
Save