72d55d396d
CI / changes (push) Successful in 36s
CI / docker-bff (push) Successful in 3m8s
CI / docker-product (push) Successful in 3m36s
CI / docker-admin (push) Successful in 3m35s
CI / docker-user (push) Successful in 9s
CI / docker-ad (push) Successful in 29s
CI / docker-chore (push) Failing after 4s
46 lines
1.0 KiB
Go
46 lines
1.0 KiB
Go
// 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 (
|
|
PolicyReq = chore.PolicyReq
|
|
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)
|
|
}
|
|
|
|
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...)
|
|
}
|