feat: user items

This commit is contained in:
zzw
2026-08-24 15:57:08 +08:00
parent b7769ece4c
commit 132fb7c357
29 changed files with 1599 additions and 2031 deletions
+38
View File
@@ -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...)
}