代码拉取完成,页面将自动刷新
// Code generated by goctl. DO NOT EDIT!
// Source: point.proto
package pointclient
import (
"context"
"gitee.com/xiyu-gozero/point-rpc/rpc/point"
"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"
)
type (
IdReq = point.IdReq
PointListResp = point.PointListResp
PointRecordPageResp = point.PointRecordPageResp
PointRecordResp = point.PointRecordResp
PointResp = point.PointResp
SavePointRecordReq = point.SavePointRecordReq
SavePointReq = point.SavePointReq
SizeReq = point.SizeReq
UserPageReq = point.UserPageReq
Point interface {
SavePoint(ctx context.Context, in *SavePointReq, opts ...grpc.CallOption) (*PointResp, error)
GetPoint(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PointResp, error)
ListPoint(ctx context.Context, in *SizeReq, opts ...grpc.CallOption) (*PointListResp, error)
SaveUserPoint(ctx context.Context, in *SavePointReq, opts ...grpc.CallOption) (*PointResp, error)
SavePointRecord(ctx context.Context, in *SavePointRecordReq, opts ...grpc.CallOption) (*PointRecordResp, error)
UserPointRecord(ctx context.Context, in *UserPageReq, opts ...grpc.CallOption) (*PointRecordPageResp, error)
}
defaultPoint struct {
cli zrpc.Client
}
)
func NewPoint(cli zrpc.Client) Point {
return &defaultPoint{
cli: cli,
}
}
func (m *defaultPoint) SavePoint(ctx context.Context, in *SavePointReq, opts ...grpc.CallOption) (*PointResp, error) {
client := point.NewPointClient(m.cli.Conn())
return client.SavePoint(ctx, in, opts...)
}
func (m *defaultPoint) GetPoint(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PointResp, error) {
client := point.NewPointClient(m.cli.Conn())
return client.GetPoint(ctx, in, opts...)
}
func (m *defaultPoint) ListPoint(ctx context.Context, in *SizeReq, opts ...grpc.CallOption) (*PointListResp, error) {
client := point.NewPointClient(m.cli.Conn())
return client.ListPoint(ctx, in, opts...)
}
func (m *defaultPoint) SaveUserPoint(ctx context.Context, in *SavePointReq, opts ...grpc.CallOption) (*PointResp, error) {
client := point.NewPointClient(m.cli.Conn())
return client.SaveUserPoint(ctx, in, opts...)
}
func (m *defaultPoint) SavePointRecord(ctx context.Context, in *SavePointRecordReq, opts ...grpc.CallOption) (*PointRecordResp, error) {
client := point.NewPointClient(m.cli.Conn())
return client.SavePointRecord(ctx, in, opts...)
}
func (m *defaultPoint) UserPointRecord(ctx context.Context, in *UserPageReq, opts ...grpc.CallOption) (*PointRecordPageResp, error) {
client := point.NewPointClient(m.cli.Conn())
return client.UserPointRecord(ctx, in, opts...)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。