Browse Source

增加Get380Star方法

master v0.4.0
guzeng 2 years ago
parent
commit
0cbfce0db4
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      supplier.pb.go
  2. +1
    -0
      supplier.proto

+ 4
- 0
supplier.pb.go View File

@ -101,6 +101,7 @@ type SupplierService interface {
Get(in *Request, out *Response) error
GetByUuid(in *Request, out *Response) error
IsOpen(in *Request, out *Response) error
Get380Star(in *Request, out *Response) error
}
// AcceptSupplierServiceClient accepts connections on the listener and serves requests
@ -181,6 +182,9 @@ func (c *SupplierServiceClient) GetByUuid(in *Request, out *Response) error {
func (c *SupplierServiceClient) IsOpen(in *Request, out *Response) error {
return c.Call("SupplierService.IsOpen", in, out)
}
func (c *SupplierServiceClient) Get380Star(in *Request, out *Response) error {
return c.Call("SupplierService.Get380Star", in, out)
}
// DialSupplierService connects to an SupplierService at the specified network address.
func DialSupplierService(network, addr string) (*SupplierServiceClient, *rpc.Client, error) {


+ 1
- 0
supplier.proto View File

@ -20,4 +20,5 @@ service SupplierService {
rpc Get (Request) returns (Response); // 使id查询
rpc GetByUuid (Request) returns (Response); // 使uuid查询
rpc IsOpen (Request) returns (Response); //
rpc Get380Star (Request) returns (Response); // 380star供应商数据
}

Loading…
Cancel
Save