1 Star 0 Fork 0

liuxuezhan / mylib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
game2gate.pb.micro.go 6.42 KB
一键复制 编辑 原始数据 按行查看 历史
liuxuezhan 提交于 2020-11-16 20:18 . 'gate ok'
// Code generated by protoc-gen-micro. DO NOT EDIT.
// source: game2gate.proto
package MPB
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
import (
context "context"
client "github.com/micro/go-micro/client"
server "github.com/micro/go-micro/server"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ client.Option
var _ server.Option
// Client API for Game2Gate service
type Game2GateService interface {
ActCalendarChange(ctx context.Context, in *GS_ActCalendarChange, opts ...client.CallOption) (*Response, error)
ActConfChange(ctx context.Context, in *GS_ActConfChange, opts ...client.CallOption) (*Response, error)
ActStageChange(ctx context.Context, in *GS_ActStageChange, opts ...client.CallOption) (*Response, error)
MailNew(ctx context.Context, in *GS_MailNew, opts ...client.CallOption) (*Response, error)
MailDel(ctx context.Context, in *GS_MailDel, opts ...client.CallOption) (*Response, error)
MailChange(ctx context.Context, in *GS_MailChange, opts ...client.CallOption) (*Response, error)
GetRank(ctx context.Context, in *C_GetRank, opts ...client.CallOption) (*GS_GetRank_R, error)
}
type game2GateService struct {
c client.Client
name string
}
func NewGame2GateService(name string, c client.Client) Game2GateService {
if c == nil {
c = client.NewClient()
}
if len(name) == 0 {
name = "MPB"
}
return &game2GateService{
c: c,
name: name,
}
}
func (c *game2GateService) ActCalendarChange(ctx context.Context, in *GS_ActCalendarChange, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.name, "Game2Gate.ActCalendarChange", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *game2GateService) ActConfChange(ctx context.Context, in *GS_ActConfChange, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.name, "Game2Gate.ActConfChange", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *game2GateService) ActStageChange(ctx context.Context, in *GS_ActStageChange, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.name, "Game2Gate.ActStageChange", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *game2GateService) MailNew(ctx context.Context, in *GS_MailNew, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.name, "Game2Gate.MailNew", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *game2GateService) MailDel(ctx context.Context, in *GS_MailDel, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.name, "Game2Gate.MailDel", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *game2GateService) MailChange(ctx context.Context, in *GS_MailChange, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.name, "Game2Gate.MailChange", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *game2GateService) GetRank(ctx context.Context, in *C_GetRank, opts ...client.CallOption) (*GS_GetRank_R, error) {
req := c.c.NewRequest(c.name, "Game2Gate.GetRank", in)
out := new(GS_GetRank_R)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Game2Gate service
type Game2GateHandler interface {
ActCalendarChange(context.Context, *GS_ActCalendarChange, *Response) error
ActConfChange(context.Context, *GS_ActConfChange, *Response) error
ActStageChange(context.Context, *GS_ActStageChange, *Response) error
MailNew(context.Context, *GS_MailNew, *Response) error
MailDel(context.Context, *GS_MailDel, *Response) error
MailChange(context.Context, *GS_MailChange, *Response) error
GetRank(context.Context, *C_GetRank, *GS_GetRank_R) error
}
func RegisterGame2GateHandler(s server.Server, hdlr Game2GateHandler, opts ...server.HandlerOption) error {
type game2Gate interface {
ActCalendarChange(ctx context.Context, in *GS_ActCalendarChange, out *Response) error
ActConfChange(ctx context.Context, in *GS_ActConfChange, out *Response) error
ActStageChange(ctx context.Context, in *GS_ActStageChange, out *Response) error
MailNew(ctx context.Context, in *GS_MailNew, out *Response) error
MailDel(ctx context.Context, in *GS_MailDel, out *Response) error
MailChange(ctx context.Context, in *GS_MailChange, out *Response) error
GetRank(ctx context.Context, in *C_GetRank, out *GS_GetRank_R) error
}
type Game2Gate struct {
game2Gate
}
h := &game2GateHandler{hdlr}
return s.Handle(s.NewHandler(&Game2Gate{h}, opts...))
}
type game2GateHandler struct {
Game2GateHandler
}
func (h *game2GateHandler) ActCalendarChange(ctx context.Context, in *GS_ActCalendarChange, out *Response) error {
return h.Game2GateHandler.ActCalendarChange(ctx, in, out)
}
func (h *game2GateHandler) ActConfChange(ctx context.Context, in *GS_ActConfChange, out *Response) error {
return h.Game2GateHandler.ActConfChange(ctx, in, out)
}
func (h *game2GateHandler) ActStageChange(ctx context.Context, in *GS_ActStageChange, out *Response) error {
return h.Game2GateHandler.ActStageChange(ctx, in, out)
}
func (h *game2GateHandler) MailNew(ctx context.Context, in *GS_MailNew, out *Response) error {
return h.Game2GateHandler.MailNew(ctx, in, out)
}
func (h *game2GateHandler) MailDel(ctx context.Context, in *GS_MailDel, out *Response) error {
return h.Game2GateHandler.MailDel(ctx, in, out)
}
func (h *game2GateHandler) MailChange(ctx context.Context, in *GS_MailChange, out *Response) error {
return h.Game2GateHandler.MailChange(ctx, in, out)
}
func (h *game2GateHandler) GetRank(ctx context.Context, in *C_GetRank, out *GS_GetRank_R) error {
return h.Game2GateHandler.GetRank(ctx, in, out)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuxuezhan/mylib.git
git@gitee.com:liuxuezhan/mylib.git
liuxuezhan
mylib
mylib
v1.1.1

搜索帮助

344bd9b3 5694891 D2dac590 5694891