// Code generated by goctl. DO NOT EDIT. // goctl 1.10.1 // Source: chore.proto package choreClient import ( "context" "lone-services/rpc/chore/pb" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( DecryptMobileReq = chore.DecryptMobileReq PolicyReq = chore.PolicyReq RegionsReq = chore.RegionsReq Response = chore.Response TestReq = chore.TestReq Chore interface { Policy(ctx context.Context, in *PolicyReq, opts ...grpc.CallOption) (*Response, error) Test(ctx context.Context, in *TestReq, opts ...grpc.CallOption) (*Response, error) DecryptMobile(ctx context.Context, in *DecryptMobileReq, opts ...grpc.CallOption) (*Response, error) Regions(ctx context.Context, in *RegionsReq, opts ...grpc.CallOption) (*Response, error) } defaultChore struct { cli zrpc.Client } ) func NewChore(cli zrpc.Client) Chore { return &defaultChore{ cli: cli, } } func (m *defaultChore) Policy(ctx context.Context, in *PolicyReq, opts ...grpc.CallOption) (*Response, error) { client := chore.NewChoreClient(m.cli.Conn()) return client.Policy(ctx, in, opts...) } func (m *defaultChore) Test(ctx context.Context, in *TestReq, opts ...grpc.CallOption) (*Response, error) { client := chore.NewChoreClient(m.cli.Conn()) return client.Test(ctx, in, opts...) } func (m *defaultChore) DecryptMobile(ctx context.Context, in *DecryptMobileReq, opts ...grpc.CallOption) (*Response, error) { client := chore.NewChoreClient(m.cli.Conn()) return client.DecryptMobile(ctx, in, opts...) } func (m *defaultChore) Regions(ctx context.Context, in *RegionsReq, opts ...grpc.CallOption) (*Response, error) { client := chore.NewChoreClient(m.cli.Conn()) return client.Regions(ctx, in, opts...) }