1 Star 0 Fork 0

xiyu-gozero / point-rpc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
point.go 2.61 KB
一键复制 编辑 原始数据 按行查看 历史
王龙 提交于 2022-11-11 17:54 . tmp
// 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...)
}
1
https://gitee.com/xiyu-gozero/point-rpc.git
git@gitee.com:xiyu-gozero/point-rpc.git
xiyu-gozero
point-rpc
point-rpc
e1bfe29a6979

搜索帮助