You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
806 B
Go

// Code generated by goctl. DO NOT EDIT!
// Source: gift.proto
package gift
import (
"context"
"live-service/app/gift/rpc/pb"
"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"
)
type (
CollectGift = pb.CollectGift
Empty = pb.Empty
Gift interface {
// collectGift 收集礼物,仅作为收集使用
CollectGift(ctx context.Context, in *CollectGift, opts ...grpc.CallOption) (*Empty, error)
}
defaultGift struct {
cli zrpc.Client
}
)
func NewGift(cli zrpc.Client) Gift {
return &defaultGift{
cli: cli,
}
}
// collectGift 收集礼物,仅作为收集使用
func (m *defaultGift) CollectGift(ctx context.Context, in *CollectGift, opts ...grpc.CallOption) (*Empty, error) {
client := pb.NewGiftClient(m.cli.Conn())
return client.CollectGift(ctx, in, opts...)
}