You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
136 lines
3.9 KiB
136 lines
3.9 KiB
package awc |
|
|
|
const ( |
|
APIRlease = "https://fsaap.velkigames365.cc" |
|
APITest = "https://tttint.onlinegames22.com" |
|
AgentIDTest = "whalegameagt" |
|
AgentIDRelease = "whalegameag" |
|
CertTest = "7bPxMIkZiSI0ljH0j6A" |
|
CertRelease = "OEyCB2Ah41hMwEMXtjN" |
|
APIKeyTest = "SyPUfvf7Q5d$qxGG" |
|
APIKeyRelease = "OEyCB2Ah41hMwEMXtjN" |
|
CreateAPI = "/wallet/createMember" |
|
LoginAPI = "/wallet/doLoginAndLaunchGame" |
|
// LoginAPI = "/wallet/login" |
|
TimeFormatString = "2006-01-02T15:04:05.000-07:00" |
|
|
|
BetLimitINRTest = `{"SEXYBCRT":{"LIVE":{"limitId":[284901,284902,284903]}}}` |
|
BetLimitUsdtTest = `{"SEXYBCRT":{"LIVE":{"limitId":[280701,280702,280703]}}}` |
|
BetLimitINRRelease = `{"SEXYBCRT":{"LIVE":{"limitId":[154902,154903,154904]}}}` |
|
BetLimitUsdtRelease = `{"SEXYBCRT":{"LIVE":{"limitId":[150703,150704,150705]}}}` |
|
) |
|
|
|
var ( |
|
API = "" |
|
AgentID = "" |
|
Cert = "" |
|
APIKey = "" |
|
BetLimitINR = "" |
|
BetLimitUsdt = "" |
|
) |
|
|
|
type CommonResp struct { |
|
Status string `json:"status"` |
|
Desc string `json:"desc"` |
|
URL string `json:"url"` |
|
} |
|
|
|
type Action struct { |
|
Action string `json:"action"` |
|
UserId string `json:"userId"` |
|
} |
|
|
|
type GetBalanceResp struct { |
|
Status string `json:"status"` |
|
UserId string `json:"userId"` |
|
Balance float64 `json:"balance"` |
|
BalanceTs string `json:"balanceTs"` |
|
} |
|
|
|
type PlaceBetReq struct { |
|
Txns []Txn `json:"txns"` |
|
} |
|
|
|
type PlaceBetResp struct { |
|
Status string `json:"status"` |
|
Desc string `json:"desc"` |
|
Balance float64 `json:"balance"` |
|
BalanceTs string `json:"balanceTs"` |
|
} |
|
|
|
type Txn struct { |
|
PlatformTxId string `json:"platformTxId"` |
|
UserId string `json:"userId"` |
|
Currency string `json:"currency"` |
|
Platform string `json:"platform"` |
|
GameType string `json:"gameType"` |
|
GameCode string `json:"gameCode"` |
|
GameName string `json:"gameName"` |
|
BetType string `json:"betType"` |
|
BetAmount float64 `json:"betAmount"` |
|
BetTime string `json:"betTime"` |
|
RoundId string `json:"roundId"` |
|
GameInfo interface{} `json:"gameInfo"` |
|
VoidType int64 `json:"voidType"` |
|
} |
|
|
|
type CancelBetReq struct { |
|
Txns []Txn `json:"txns"` |
|
} |
|
|
|
type CancelBetResp struct { |
|
Status string `json:"status"` |
|
Desc string `json:"desc"` |
|
Balance float64 `json:"balance"` |
|
BalanceTs string `json:"balanceTs"` |
|
} |
|
|
|
type SettleReq struct { |
|
Txns []SettleTxn `json:"txns"` |
|
} |
|
|
|
type SettleResp struct { |
|
Status string `json:"status"` |
|
Desc string `json:"desc"` |
|
} |
|
|
|
type SettleTxn struct { |
|
PlatformTxId string `json:"platformTxId"` |
|
UserId string `json:"userId"` |
|
Currency string `json:"currency"` |
|
Platform string `json:"platform"` |
|
GameType string `json:"gameType"` |
|
GameCode string `json:"gameCode"` |
|
GameName string `json:"gameName"` |
|
BetType string `json:"betType"` |
|
BetAmount float64 `json:"betAmount"` |
|
WinAmount float64 `json:"winAmount"` |
|
TurnOver float64 `json:"turnover"` |
|
BetTime string `json:"betTime"` |
|
UpdateTime string `json:"updateTime"` |
|
RoundId string `json:"roundId"` |
|
GameInfo interface{} `json:"gameInfo"` |
|
TxTime string `json:"txTime"` |
|
SettleType string `json:"settleType"` |
|
RefPlatformTxId string `json:"refPlatformTxId"` |
|
} |
|
|
|
type GiveReq struct { |
|
Txns []GiveTxn `json:"txns"` |
|
} |
|
|
|
type GiveResp struct { |
|
Status string `json:"status"` |
|
Desc string `json:"desc"` |
|
} |
|
|
|
type GiveTxn struct { |
|
TxTime string `json:"txTime"` |
|
Amount float64 `json:"amount"` |
|
Currency string `json:"currency"` |
|
PromotionTxId string `json:"promotionTxId"` |
|
PromotionId string `json:"promotionId"` |
|
PromotionTypeId string `json:"promotionTypeId"` |
|
UserId string `json:"userId"` |
|
Platform string `json:"platform"` |
|
}
|
|
|