forked from 33cn/plugin
/
tx.go
35 lines (30 loc) · 986 Bytes
/
tx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package executor
// BlackwhiteCreateTxReq 创建游戏结构体
type BlackwhiteCreateTxReq struct {
PlayAmount int64 `json:"amount"`
PlayerCount int32 `json:"playerCount"`
Timeout int64 `json:"timeout"`
GameName string `json:"gameName"`
Fee int64 `json:"fee"`
}
// BlackwhitePlayTx 参与游戏结构体
type BlackwhitePlayTx struct {
GameID string `json:"gameID"`
Amount int64 `json:"amount"`
HashValues [][]byte `json:"hashValues"`
Fee int64 `json:"fee"`
}
// BlackwhiteShowTx 出示密钥结构体
type BlackwhiteShowTx struct {
GameID string `json:"gameID"`
Secret string `json:"secret"`
Fee int64 `json:"fee"`
}
// BlackwhiteTimeoutDoneTx 游戏超时结构体
type BlackwhiteTimeoutDoneTx struct {
GameID string `json:"GameID"`
Fee int64 `json:"fee"`
}