feat: user items
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
// 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
|
||||
|
||||
Chore interface {
|
||||
Policy(ctx context.Context, in *PolicyReq, 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...)
|
||||
}
|
||||
Reference in New Issue
Block a user