TitleStuff.liverpc.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Code generated by protoc-gen-liverpc v0.1, DO NOT EDIT.
  2. // source: v1/TitleStuff.proto
  3. package v1
  4. import context "context"
  5. import proto "github.com/golang/protobuf/proto"
  6. import "go-common/library/net/rpc/liverpc"
  7. var _ proto.Message // generate to suppress unused imports
  8. // ====================
  9. // TitleStuff Interface
  10. // ====================
  11. type TitleStuffRPCClient interface {
  12. // * 添加头衔经验原石
  13. //
  14. Add(ctx context.Context, req *TitleStuffAddReq, opts ...liverpc.CallOption) (resp *TitleStuffAddResp, err error)
  15. }
  16. // ==========================
  17. // TitleStuff Live Rpc Client
  18. // ==========================
  19. type titleStuffRPCClient struct {
  20. client *liverpc.Client
  21. }
  22. // NewTitleStuffRPCClient creates a client that implements the TitleStuffRPCClient interface.
  23. func NewTitleStuffRPCClient(client *liverpc.Client) TitleStuffRPCClient {
  24. return &titleStuffRPCClient{
  25. client: client,
  26. }
  27. }
  28. func (c *titleStuffRPCClient) Add(ctx context.Context, in *TitleStuffAddReq, opts ...liverpc.CallOption) (*TitleStuffAddResp, error) {
  29. out := new(TitleStuffAddResp)
  30. err := doRPCRequest(ctx, c.client, 1, "TitleStuff.add", in, out, opts)
  31. if err != nil {
  32. return nil, err
  33. }
  34. return out, nil
  35. }