{
  "openapi": "3.0.1",
  "info": {
    "title": "WebAgent",
    "version": "1.0"
  },
  "paths": {
    "/Api/GetPlayerId": {
      "get": {
        "tags": [
          "Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/Api/GetPlayer": {
      "post": {
        "tags": [
          "Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBalanceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBalanceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetBalanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Api/GetBalance": {
      "post": {
        "tags": [
          "Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBalanceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBalanceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetBalanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Api/GetRecord": {
      "post": {
        "tags": [
          "Api"
        ],
        "parameters": [
          {
            "name": "recordId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Api/ChangeBalance": {
      "post": {
        "tags": [
          "Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeBalanceMessage"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeBalanceMessage"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeBalanceMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Api/Test": {
      "get": {
        "tags": [
          "Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TheaResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BetType": {
        "enum": [
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "ChangeBalanceMessage": {
        "type": "object",
        "properties": {
          "txId": {
            "type": "string",
            "nullable": true
          },
          "recordId": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "integer",
            "format": "int32"
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "gameId": {
            "type": "integer",
            "format": "int32"
          },
          "roomType": {
            "type": "integer",
            "format": "int32"
          },
          "roomId": {
            "type": "string",
            "nullable": true
          },
          "roundId": {
            "type": "string",
            "nullable": true
          },
          "changeType": {
            "$ref": "#/components/schemas/ChangeType"
          },
          "nickName": {
            "type": "string",
            "nullable": true
          },
          "avatarUrl": {
            "type": "string",
            "nullable": true
          },
          "area": {
            "type": "integer",
            "format": "int32"
          },
          "betType": {
            "$ref": "#/components/schemas/BetType"
          },
          "beginBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "betAmount": {
            "type": "number",
            "format": "double"
          },
          "bonus": {
            "type": "number",
            "format": "double"
          },
          "totalBonus": {
            "type": "number",
            "format": "double"
          },
          "profit": {
            "type": "number",
            "format": "double"
          },
          "endBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "multiple": {
            "type": "number",
            "format": "double"
          },
          "totalMultiple": {
            "type": "number",
            "format": "double"
          },
          "roundMultiple": {
            "type": "number",
            "format": "double"
          },
          "details": {
            "nullable": true
          },
          "isCompleted": {
            "type": "boolean"
          },
          "isRetry": {
            "type": "boolean"
          },
          "isSuccess": {
            "type": "boolean"
          },
          "request": {
            "type": "string",
            "nullable": true
          },
          "response": {
            "type": "string",
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "nullable": true
          },
          "hasChildren": {
            "type": "boolean"
          },
          "isPassive": {
            "type": "boolean"
          },
          "changeRtpType": {
            "type": "integer",
            "format": "int32"
          },
          "changeRtpRule": {
            "type": "string",
            "nullable": true
          },
          "changeRtp": {
            "type": "integer",
            "format": "int32"
          },
          "tValue": {
            "type": "number",
            "format": "double"
          },
          "slotPlayType": {
            "type": "integer",
            "format": "int32"
          },
          "slotMode": {
            "type": "integer",
            "format": "int32"
          },
          "tags": {
            "type": "string",
            "nullable": true
          },
          "itemRecordId": {
            "type": "integer",
            "format": "int64"
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "isRobot": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "integer",
            "format": "int64"
          },
          "updatedAt": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "ChangeType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          100
        ],
        "type": "integer",
        "format": "int32"
      },
      "GetBalanceRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "integer",
            "format": "int32"
          },
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TheaResponse": {
        "type": "object",
        "properties": {
          "isSuccess": {
            "type": "boolean"
          },
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}