Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
// Code generated by protoc-gen-liverpc v0.1, DO NOT EDIT.
// source: v1/TitleStuff.proto
package v1
import context "context"
import proto "github.com/golang/protobuf/proto"
import "go-common/library/net/rpc/liverpc"
var _ proto.Message // generate to suppress unused imports
// ====================
// TitleStuff Interface
// ====================
type TitleStuffRPCClient interface {
// * 添加头衔经验原石
//
Add(ctx context.Context, req *TitleStuffAddReq, opts ...liverpc.CallOption) (resp *TitleStuffAddResp, err error)
}
// ==========================
// TitleStuff Live Rpc Client
// ==========================
type titleStuffRPCClient struct {
client *liverpc.Client
}
// NewTitleStuffRPCClient creates a client that implements the TitleStuffRPCClient interface.
func NewTitleStuffRPCClient(client *liverpc.Client) TitleStuffRPCClient {
return &titleStuffRPCClient{
client: client,
}
}
func (c *titleStuffRPCClient) Add(ctx context.Context, in *TitleStuffAddReq, opts ...liverpc.CallOption) (*TitleStuffAddResp, error) {
out := new(TitleStuffAddResp)
err := doRPCRequest(ctx, c.client, 1, "TitleStuff.add", in, out, opts)
if err != nil {
return nil, err
}
return out, nil
}