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.
242 lines
7.6 KiB
Go
242 lines
7.6 KiB
Go
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
|
// source: w_games.proto
|
|
|
|
package w_gamespb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "google.golang.org/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
import (
|
|
context "context"
|
|
api "go-micro.dev/v4/api"
|
|
client "go-micro.dev/v4/client"
|
|
server "go-micro.dev/v4/server"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ api.Endpoint
|
|
var _ context.Context
|
|
var _ client.Option
|
|
var _ server.Option
|
|
|
|
// Api Endpoints for WGames service
|
|
|
|
func NewWGamesEndpoints() []*api.Endpoint {
|
|
return []*api.Endpoint{}
|
|
}
|
|
|
|
// Client API for WGames service
|
|
|
|
type WGamesService interface {
|
|
// List 游戏列表
|
|
List(ctx context.Context, in *ListReq, opts ...client.CallOption) (*ListRes, error)
|
|
// LinkList 链接列表
|
|
LinkList(ctx context.Context, in *LinkListReq, opts ...client.CallOption) (*LinkListRes, error)
|
|
// LinkStore 创建链接
|
|
LinkStore(ctx context.Context, in *LinkStoreReq, opts ...client.CallOption) (*LinkStoreRes, error)
|
|
// LinkUpdate 更新链接
|
|
LinkUpdate(ctx context.Context, in *LinkUpdateReq, opts ...client.CallOption) (*LinkUpdateRes, error)
|
|
// LinkDestroy 删除链接
|
|
LinkDestroy(ctx context.Context, in *LinkDestroyReq, opts ...client.CallOption) (*LinkDestroyRes, error)
|
|
// Visit 访问小游戏
|
|
Visit(ctx context.Context, in *VisitReq, opts ...client.CallOption) (*VisitRes, error)
|
|
// Trace 跟踪小游戏
|
|
Trace(ctx context.Context, in *TraceReq, opts ...client.CallOption) (*TraceRes, error)
|
|
// Overview 小游戏统计
|
|
Overview(ctx context.Context, in *OverviewReq, opts ...client.CallOption) (*OverviewRes, error)
|
|
// Trend 小游戏趋势
|
|
Trend(ctx context.Context, in *TrendReq, opts ...client.CallOption) (*TrendRes, error)
|
|
}
|
|
|
|
type wGamesService struct {
|
|
c client.Client
|
|
name string
|
|
}
|
|
|
|
func NewWGamesService(name string, c client.Client) WGamesService {
|
|
return &wGamesService{
|
|
c: c,
|
|
name: name,
|
|
}
|
|
}
|
|
|
|
func (c *wGamesService) List(ctx context.Context, in *ListReq, opts ...client.CallOption) (*ListRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.List", in)
|
|
out := new(ListRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *wGamesService) LinkList(ctx context.Context, in *LinkListReq, opts ...client.CallOption) (*LinkListRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.LinkList", in)
|
|
out := new(LinkListRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *wGamesService) LinkStore(ctx context.Context, in *LinkStoreReq, opts ...client.CallOption) (*LinkStoreRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.LinkStore", in)
|
|
out := new(LinkStoreRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *wGamesService) LinkUpdate(ctx context.Context, in *LinkUpdateReq, opts ...client.CallOption) (*LinkUpdateRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.LinkUpdate", in)
|
|
out := new(LinkUpdateRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *wGamesService) LinkDestroy(ctx context.Context, in *LinkDestroyReq, opts ...client.CallOption) (*LinkDestroyRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.LinkDestroy", in)
|
|
out := new(LinkDestroyRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *wGamesService) Visit(ctx context.Context, in *VisitReq, opts ...client.CallOption) (*VisitRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.Visit", in)
|
|
out := new(VisitRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *wGamesService) Trace(ctx context.Context, in *TraceReq, opts ...client.CallOption) (*TraceRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.Trace", in)
|
|
out := new(TraceRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *wGamesService) Overview(ctx context.Context, in *OverviewReq, opts ...client.CallOption) (*OverviewRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.Overview", in)
|
|
out := new(OverviewRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *wGamesService) Trend(ctx context.Context, in *TrendReq, opts ...client.CallOption) (*TrendRes, error) {
|
|
req := c.c.NewRequest(c.name, "WGames.Trend", in)
|
|
out := new(TrendRes)
|
|
err := c.c.Call(ctx, req, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for WGames service
|
|
|
|
type WGamesHandler interface {
|
|
// List 游戏列表
|
|
List(context.Context, *ListReq, *ListRes) error
|
|
// LinkList 链接列表
|
|
LinkList(context.Context, *LinkListReq, *LinkListRes) error
|
|
// LinkStore 创建链接
|
|
LinkStore(context.Context, *LinkStoreReq, *LinkStoreRes) error
|
|
// LinkUpdate 更新链接
|
|
LinkUpdate(context.Context, *LinkUpdateReq, *LinkUpdateRes) error
|
|
// LinkDestroy 删除链接
|
|
LinkDestroy(context.Context, *LinkDestroyReq, *LinkDestroyRes) error
|
|
// Visit 访问小游戏
|
|
Visit(context.Context, *VisitReq, *VisitRes) error
|
|
// Trace 跟踪小游戏
|
|
Trace(context.Context, *TraceReq, *TraceRes) error
|
|
// Overview 小游戏统计
|
|
Overview(context.Context, *OverviewReq, *OverviewRes) error
|
|
// Trend 小游戏趋势
|
|
Trend(context.Context, *TrendReq, *TrendRes) error
|
|
}
|
|
|
|
func RegisterWGamesHandler(s server.Server, hdlr WGamesHandler, opts ...server.HandlerOption) error {
|
|
type wGames interface {
|
|
List(ctx context.Context, in *ListReq, out *ListRes) error
|
|
LinkList(ctx context.Context, in *LinkListReq, out *LinkListRes) error
|
|
LinkStore(ctx context.Context, in *LinkStoreReq, out *LinkStoreRes) error
|
|
LinkUpdate(ctx context.Context, in *LinkUpdateReq, out *LinkUpdateRes) error
|
|
LinkDestroy(ctx context.Context, in *LinkDestroyReq, out *LinkDestroyRes) error
|
|
Visit(ctx context.Context, in *VisitReq, out *VisitRes) error
|
|
Trace(ctx context.Context, in *TraceReq, out *TraceRes) error
|
|
Overview(ctx context.Context, in *OverviewReq, out *OverviewRes) error
|
|
Trend(ctx context.Context, in *TrendReq, out *TrendRes) error
|
|
}
|
|
type WGames struct {
|
|
wGames
|
|
}
|
|
h := &wGamesHandler{hdlr}
|
|
return s.Handle(s.NewHandler(&WGames{h}, opts...))
|
|
}
|
|
|
|
type wGamesHandler struct {
|
|
WGamesHandler
|
|
}
|
|
|
|
func (h *wGamesHandler) List(ctx context.Context, in *ListReq, out *ListRes) error {
|
|
return h.WGamesHandler.List(ctx, in, out)
|
|
}
|
|
|
|
func (h *wGamesHandler) LinkList(ctx context.Context, in *LinkListReq, out *LinkListRes) error {
|
|
return h.WGamesHandler.LinkList(ctx, in, out)
|
|
}
|
|
|
|
func (h *wGamesHandler) LinkStore(ctx context.Context, in *LinkStoreReq, out *LinkStoreRes) error {
|
|
return h.WGamesHandler.LinkStore(ctx, in, out)
|
|
}
|
|
|
|
func (h *wGamesHandler) LinkUpdate(ctx context.Context, in *LinkUpdateReq, out *LinkUpdateRes) error {
|
|
return h.WGamesHandler.LinkUpdate(ctx, in, out)
|
|
}
|
|
|
|
func (h *wGamesHandler) LinkDestroy(ctx context.Context, in *LinkDestroyReq, out *LinkDestroyRes) error {
|
|
return h.WGamesHandler.LinkDestroy(ctx, in, out)
|
|
}
|
|
|
|
func (h *wGamesHandler) Visit(ctx context.Context, in *VisitReq, out *VisitRes) error {
|
|
return h.WGamesHandler.Visit(ctx, in, out)
|
|
}
|
|
|
|
func (h *wGamesHandler) Trace(ctx context.Context, in *TraceReq, out *TraceRes) error {
|
|
return h.WGamesHandler.Trace(ctx, in, out)
|
|
}
|
|
|
|
func (h *wGamesHandler) Overview(ctx context.Context, in *OverviewReq, out *OverviewRes) error {
|
|
return h.WGamesHandler.Overview(ctx, in, out)
|
|
}
|
|
|
|
func (h *wGamesHandler) Trend(ctx context.Context, in *TrendReq, out *TrendRes) error {
|
|
return h.WGamesHandler.Trend(ctx, in, out)
|
|
}
|