tkcashgame_v4/api/eonline/openapi.yaml

289 lines
10 KiB
YAML
Raw Permalink Normal View History

2025-10-22 10:01:11 +00:00
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
openapi: 3.0.3
info:
title: Eonline API
description: The greeting service definition.
version: 0.0.1
paths:
/eonline/pay/init:
post:
tags:
- Eonline
description: PayInit
operationId: Eonline_PayInit
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PayInitReq'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PayInitReply'
default:
description: Default error response
content:
application/json:
schema:
$ref: '#/components/schemas/Status'
/eonline/payout:
post:
tags:
- Eonline
description: Payout
operationId: Eonline_Payout
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PayoutReq'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PayoutReply'
default:
description: Default error response
content:
application/json:
schema:
$ref: '#/components/schemas/Status'
/eonline/payout/callback:
post:
tags:
- Eonline
description: PayoutCallback
operationId: Eonline_PayoutCallback
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PayoutCallbackReq'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PayoutCallbackReply'
default:
description: Default error response
content:
application/json:
schema:
$ref: '#/components/schemas/Status'
/eonline/payout/check:
post:
tags:
- Eonline
description: PayoutCheck
operationId: Eonline_PayoutCheck
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PayoutCheckReq'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PayoutCheckReply'
default:
description: Default error response
content:
application/json:
schema:
$ref: '#/components/schemas/Status'
/eonline/{name}:
get:
tags:
- Eonline
description: Sends a greeting
operationId: Eonline_SayHello
parameters:
- name: name
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/HelloReply'
default:
description: Default error response
content:
application/json:
schema:
$ref: '#/components/schemas/Status'
components:
schemas:
GoogleProtobufAny:
type: object
properties:
'@type':
type: string
description: The type of the serialized message.
additionalProperties: true
description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
HelloReply:
type: object
properties:
message:
type: string
description: The response message containing the greetings
PayInitReply:
type: object
properties:
uuid:
type: string
items:
type: array
items:
$ref: '#/components/schemas/PayInitReply_Item'
description: PayInitReply init reply
PayInitReply_Item:
type: object
properties:
id:
type: integer
format: int32
amount:
type: number
format: double
status:
type: integer
format: int32
PayInitReq:
type: object
properties:
platform:
type: string
deviceid:
type: string
version:
type: string
ts:
type: string
sign:
type: string
ip:
type: string
description: PayInitReq init request
PayoutCallbackReply:
type: object
properties:
message:
type: string
description: PayoutCallbackReply 赔付回调响应
PayoutCallbackReq:
type: object
properties:
payoutId:
type: string
customCode:
type: string
status:
type: string
msg:
type: string
timestamp:
type: integer
format: int64
description: PayoutCallbackReq 赔付回调请求
PayoutCheckReply:
type: object
properties:
status:
type: integer
format: int32
description: PayoutCheckReply 赔付查询响应
PayoutCheckReq:
type: object
properties:
platform:
type: string
deviceid:
type: string
version:
type: string
ts:
type: string
sign:
type: string
ip:
type: string
recordNo:
type: string
description: PayoutCheckReq 赔付查询请求
PayoutReply:
type: object
properties:
id:
type: string
recordNo:
type: string
description: PayoutReply 赔付响应
PayoutReq:
type: object
properties:
platform:
type: string
deviceid:
type: string
version:
type: string
ts:
type: string
sign:
type: string
account:
type: string
itemId:
type: integer
format: int32
amount:
type: number
format: double
additionalRemark:
type: string
uuid:
type: string
ip:
type: string
description: PayoutReq 赔付请求
Status:
type: object
properties:
code:
type: integer
description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
format: int32
message:
type: string
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details:
type: array
items:
$ref: '#/components/schemas/GoogleProtobufAny'
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
tags:
- name: Eonline