520 lines
18 KiB
Go
520 lines
18 KiB
Go
|
// Code generated by protoc-gen-go-http. DO NOT EDIT.
|
|||
|
// versions:
|
|||
|
// - protoc-gen-go-http v2.7.0
|
|||
|
// - protoc v3.20.3
|
|||
|
// source: api/eonline/v1/eonline.proto
|
|||
|
|
|||
|
package v1
|
|||
|
|
|||
|
import (
|
|||
|
context "context"
|
|||
|
http "github.com/go-kratos/kratos/v2/transport/http"
|
|||
|
binding "github.com/go-kratos/kratos/v2/transport/http/binding"
|
|||
|
)
|
|||
|
|
|||
|
// This is a compile-time assertion to ensure that this generated file
|
|||
|
// is compatible with the kratos package it is being compiled against.
|
|||
|
var _ = new(context.Context)
|
|||
|
var _ = binding.EncodeURL
|
|||
|
|
|||
|
const _ = http.SupportPackageIsVersion1
|
|||
|
|
|||
|
const OperationEonlineAddChat = "/api.eonline.v1.Eonline/AddChat"
|
|||
|
const OperationEonlineCheckInfo = "/api.eonline.v1.Eonline/CheckInfo"
|
|||
|
const OperationEonlineGetChat = "/api.eonline.v1.Eonline/GetChat"
|
|||
|
const OperationEonlineGetPayoutUserLst = "/api.eonline.v1.Eonline/GetPayoutUserLst"
|
|||
|
const OperationEonlinePayInit = "/api.eonline.v1.Eonline/PayInit"
|
|||
|
const OperationEonlinePayout = "/api.eonline.v1.Eonline/Payout"
|
|||
|
const OperationEonlinePayoutBrazil = "/api.eonline.v1.Eonline/PayoutBrazil"
|
|||
|
const OperationEonlinePayoutCallback = "/api.eonline.v1.Eonline/PayoutCallback"
|
|||
|
const OperationEonlinePayoutCheck = "/api.eonline.v1.Eonline/PayoutCheck"
|
|||
|
const OperationEonlineSayHello = "/api.eonline.v1.Eonline/SayHello"
|
|||
|
const OperationEonlineSetPayoutStatus = "/api.eonline.v1.Eonline/SetPayoutStatus"
|
|||
|
const OperationEonlineSubmitCheck = "/api.eonline.v1.Eonline/SubmitCheck"
|
|||
|
|
|||
|
type EonlineHTTPServer interface {
|
|||
|
// AddChat 发送聊天消息,客户端暂未用到
|
|||
|
AddChat(context.Context, *AddChatReq) (*AddChatReply, error)
|
|||
|
// CheckInfo CheckInfo,客户端暂未用到
|
|||
|
CheckInfo(context.Context, *CheckInfoReq) (*CheckInfoReply, error)
|
|||
|
// GetChat 获取聊天消息列表,客户端暂未用到
|
|||
|
GetChat(context.Context, *GetChatReq) (*GetChatReply, error)
|
|||
|
// GetPayoutUserLst 获取申请提现玩家的列表
|
|||
|
GetPayoutUserLst(context.Context, *PayoutUserLstReq) (*PayoutUserLstReply, error)
|
|||
|
// PayInit PayInit
|
|||
|
PayInit(context.Context, *PayInitReq) (*PayInitReply, error)
|
|||
|
// Payout Payout,客户端暂未用到
|
|||
|
Payout(context.Context, *PayoutReq) (*PayoutReply, error)
|
|||
|
// PayoutBrazil PayoutBrazil,用于巴西PIX支付
|
|||
|
PayoutBrazil(context.Context, *PayoutReq) (*PayoutReply, error)
|
|||
|
// PayoutCallback PayoutCallback,客户端暂未用到
|
|||
|
PayoutCallback(context.Context, *PayoutCallbackReq) (*PayoutCallbackReply, error)
|
|||
|
// PayoutCheck PayoutCheck
|
|||
|
PayoutCheck(context.Context, *PayoutCheckReq) (*PayoutCheckReply, error)
|
|||
|
// SayHello Sends a greeting,客户端暂未用到
|
|||
|
SayHello(context.Context, *HelloRequest) (*HelloReply, error)
|
|||
|
// SetPayoutStatus 设置指定玩家的提现状态
|
|||
|
SetPayoutStatus(context.Context, *PayoutStatusReq) (*PayoutStatusReply, error)
|
|||
|
// SubmitCheck SubmitCheck,客户端暂未用到
|
|||
|
SubmitCheck(context.Context, *SubmitCheckReq) (*SubmitCheckReply, error)
|
|||
|
}
|
|||
|
|
|||
|
func RegisterEonlineHTTPServer(s *http.Server, srv EonlineHTTPServer) {
|
|||
|
r := s.Route("/")
|
|||
|
r.GET("/eonline4/{name}", _Eonline_SayHello0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/pay/init", _Eonline_PayInit0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/payout", _Eonline_Payout0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/payoutBrazil", _Eonline_PayoutBrazil0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/payout/callback", _Eonline_PayoutCallback0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/payout/check", _Eonline_PayoutCheck0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/getPayoutUserLst", _Eonline_GetPayoutUserLst0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/setPayoutStatus", _Eonline_SetPayoutStatus0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/submitcheck", _Eonline_SubmitCheck0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/checkinfo", _Eonline_CheckInfo0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/addchat", _Eonline_AddChat0_HTTP_Handler(srv))
|
|||
|
r.POST("/eonline4/getchat", _Eonline_GetChat0_HTTP_Handler(srv))
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_SayHello0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in HelloRequest
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindVars(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlineSayHello)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.SayHello(ctx, req.(*HelloRequest))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*HelloReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_PayInit0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in PayInitReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlinePayInit)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.PayInit(ctx, req.(*PayInitReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*PayInitReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_Payout0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in PayoutReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlinePayout)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.Payout(ctx, req.(*PayoutReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*PayoutReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_PayoutBrazil0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in PayoutReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlinePayoutBrazil)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.PayoutBrazil(ctx, req.(*PayoutReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*PayoutReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_PayoutCallback0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in PayoutCallbackReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlinePayoutCallback)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.PayoutCallback(ctx, req.(*PayoutCallbackReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*PayoutCallbackReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_PayoutCheck0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in PayoutCheckReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlinePayoutCheck)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.PayoutCheck(ctx, req.(*PayoutCheckReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*PayoutCheckReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_GetPayoutUserLst0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in PayoutUserLstReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlineGetPayoutUserLst)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.GetPayoutUserLst(ctx, req.(*PayoutUserLstReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*PayoutUserLstReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_SetPayoutStatus0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in PayoutStatusReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlineSetPayoutStatus)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.SetPayoutStatus(ctx, req.(*PayoutStatusReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*PayoutStatusReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_SubmitCheck0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in SubmitCheckReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlineSubmitCheck)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.SubmitCheck(ctx, req.(*SubmitCheckReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*SubmitCheckReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_CheckInfo0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in CheckInfoReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlineCheckInfo)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.CheckInfo(ctx, req.(*CheckInfoReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*CheckInfoReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_AddChat0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in AddChatReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlineAddChat)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.AddChat(ctx, req.(*AddChatReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*AddChatReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
func _Eonline_GetChat0_HTTP_Handler(srv EonlineHTTPServer) func(ctx http.Context) error {
|
|||
|
return func(ctx http.Context) error {
|
|||
|
var in GetChatReq
|
|||
|
if err := ctx.Bind(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
if err := ctx.BindQuery(&in); err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
http.SetOperation(ctx, OperationEonlineGetChat)
|
|||
|
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|||
|
return srv.GetChat(ctx, req.(*GetChatReq))
|
|||
|
})
|
|||
|
out, err := h(ctx, &in)
|
|||
|
if err != nil {
|
|||
|
return err
|
|||
|
}
|
|||
|
reply := out.(*GetChatReply)
|
|||
|
return ctx.Result(200, reply)
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
type EonlineHTTPClient interface {
|
|||
|
AddChat(ctx context.Context, req *AddChatReq, opts ...http.CallOption) (rsp *AddChatReply, err error)
|
|||
|
CheckInfo(ctx context.Context, req *CheckInfoReq, opts ...http.CallOption) (rsp *CheckInfoReply, err error)
|
|||
|
GetChat(ctx context.Context, req *GetChatReq, opts ...http.CallOption) (rsp *GetChatReply, err error)
|
|||
|
GetPayoutUserLst(ctx context.Context, req *PayoutUserLstReq, opts ...http.CallOption) (rsp *PayoutUserLstReply, err error)
|
|||
|
PayInit(ctx context.Context, req *PayInitReq, opts ...http.CallOption) (rsp *PayInitReply, err error)
|
|||
|
Payout(ctx context.Context, req *PayoutReq, opts ...http.CallOption) (rsp *PayoutReply, err error)
|
|||
|
PayoutBrazil(ctx context.Context, req *PayoutReq, opts ...http.CallOption) (rsp *PayoutReply, err error)
|
|||
|
PayoutCallback(ctx context.Context, req *PayoutCallbackReq, opts ...http.CallOption) (rsp *PayoutCallbackReply, err error)
|
|||
|
PayoutCheck(ctx context.Context, req *PayoutCheckReq, opts ...http.CallOption) (rsp *PayoutCheckReply, err error)
|
|||
|
SayHello(ctx context.Context, req *HelloRequest, opts ...http.CallOption) (rsp *HelloReply, err error)
|
|||
|
SetPayoutStatus(ctx context.Context, req *PayoutStatusReq, opts ...http.CallOption) (rsp *PayoutStatusReply, err error)
|
|||
|
SubmitCheck(ctx context.Context, req *SubmitCheckReq, opts ...http.CallOption) (rsp *SubmitCheckReply, err error)
|
|||
|
}
|
|||
|
|
|||
|
type EonlineHTTPClientImpl struct {
|
|||
|
cc *http.Client
|
|||
|
}
|
|||
|
|
|||
|
func NewEonlineHTTPClient(client *http.Client) EonlineHTTPClient {
|
|||
|
return &EonlineHTTPClientImpl{client}
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) AddChat(ctx context.Context, in *AddChatReq, opts ...http.CallOption) (*AddChatReply, error) {
|
|||
|
var out AddChatReply
|
|||
|
pattern := "/eonline4/addchat"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlineAddChat))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) CheckInfo(ctx context.Context, in *CheckInfoReq, opts ...http.CallOption) (*CheckInfoReply, error) {
|
|||
|
var out CheckInfoReply
|
|||
|
pattern := "/eonline4/checkinfo"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlineCheckInfo))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) GetChat(ctx context.Context, in *GetChatReq, opts ...http.CallOption) (*GetChatReply, error) {
|
|||
|
var out GetChatReply
|
|||
|
pattern := "/eonline4/getchat"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlineGetChat))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) GetPayoutUserLst(ctx context.Context, in *PayoutUserLstReq, opts ...http.CallOption) (*PayoutUserLstReply, error) {
|
|||
|
var out PayoutUserLstReply
|
|||
|
pattern := "/eonline4/getPayoutUserLst"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlineGetPayoutUserLst))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) PayInit(ctx context.Context, in *PayInitReq, opts ...http.CallOption) (*PayInitReply, error) {
|
|||
|
var out PayInitReply
|
|||
|
pattern := "/eonline4/pay/init"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlinePayInit))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) Payout(ctx context.Context, in *PayoutReq, opts ...http.CallOption) (*PayoutReply, error) {
|
|||
|
var out PayoutReply
|
|||
|
pattern := "/eonline4/payout"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlinePayout))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) PayoutBrazil(ctx context.Context, in *PayoutReq, opts ...http.CallOption) (*PayoutReply, error) {
|
|||
|
var out PayoutReply
|
|||
|
pattern := "/eonline4/payoutBrazil"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlinePayoutBrazil))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) PayoutCallback(ctx context.Context, in *PayoutCallbackReq, opts ...http.CallOption) (*PayoutCallbackReply, error) {
|
|||
|
var out PayoutCallbackReply
|
|||
|
pattern := "/eonline4/payout/callback"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlinePayoutCallback))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) PayoutCheck(ctx context.Context, in *PayoutCheckReq, opts ...http.CallOption) (*PayoutCheckReply, error) {
|
|||
|
var out PayoutCheckReply
|
|||
|
pattern := "/eonline4/payout/check"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlinePayoutCheck))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) SayHello(ctx context.Context, in *HelloRequest, opts ...http.CallOption) (*HelloReply, error) {
|
|||
|
var out HelloReply
|
|||
|
pattern := "/eonline4/{name}"
|
|||
|
path := binding.EncodeURL(pattern, in, true)
|
|||
|
opts = append(opts, http.Operation(OperationEonlineSayHello))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) SetPayoutStatus(ctx context.Context, in *PayoutStatusReq, opts ...http.CallOption) (*PayoutStatusReply, error) {
|
|||
|
var out PayoutStatusReply
|
|||
|
pattern := "/eonline4/setPayoutStatus"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlineSetPayoutStatus))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|
|||
|
|
|||
|
func (c *EonlineHTTPClientImpl) SubmitCheck(ctx context.Context, in *SubmitCheckReq, opts ...http.CallOption) (*SubmitCheckReply, error) {
|
|||
|
var out SubmitCheckReply
|
|||
|
pattern := "/eonline4/submitcheck"
|
|||
|
path := binding.EncodeURL(pattern, in, false)
|
|||
|
opts = append(opts, http.Operation(OperationEonlineSubmitCheck))
|
|||
|
opts = append(opts, http.PathTemplate(pattern))
|
|||
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|||
|
if err != nil {
|
|||
|
return nil, err
|
|||
|
}
|
|||
|
return &out, err
|
|||
|
}
|