github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/http/req/common.go (about) 1 package req 2 3 type ReqSendTx struct { 4 LeagueId string `json:"league_id"` 5 Raw []byte `json:"raw"` 6 } 7 8 type ReqGetTxs struct { 9 Addr string 10 } 11 12 type ReqGetBalance struct { 13 OrgId string `json:"org_id"` 14 Addr string `json:"addr"` 15 //Height uint64 `json:"height"` 16 } 17 18 type ReqAccountNounce struct { 19 Addr string 20 } 21 22 type ReqGetTxByHash struct { 23 LeagueId string `json:"league_id"` 24 TxHash string `json:"tx_hash"` 25 } 26 27 type ReqGetBlockByHeight struct { 28 Height uint64 `json:"height"` 29 OrgId string `json:"org_id"` 30 } 31 32 type ReqSyncOrgData struct { 33 LeagueId string 34 BAdd bool 35 } 36 37 type ReqGetRefBlock struct { 38 Start uint64 `json:"start"` 39 End uint64 `json:"end"` 40 Account string `json:"account"` 41 } 42 43 type ReqOrgInfo struct { 44 OrgId string `json:"org_id"` 45 } 46 47 type ReqGetVoteList struct { 48 ReqGetMemberList 49 VoteState uint8 `json:"vote_state"` 50 } 51 52 type ReqUngetBonus struct { 53 OrgId string `json:"org_id"` 54 Account string `json:"account"` 55 } 56 57 type ReqPageBase struct { 58 Page int `json:"page"` 59 PageSize int `json:"page_size"` 60 } 61 62 type ReqGetAssetTxList struct { 63 ReqGetMemberList 64 AssetType uint8 `json:"asset_type"` 65 } 66 67 type ReqGetMemberList struct { 68 ReqPageBase 69 OrgId string `json:"org_id"` 70 Account string `json:"account"` 71 } 72 73 type ReqVoteDetail struct { 74 ReqUngetBonus 75 VoteId string `json:"vote_id"` 76 Height uint64 `json:"height"` 77 } 78 79 type ReqGetOrgAsset struct { 80 OrgId string `json:"org_id"` 81 Height uint64 `json:"height"` 82 Account string `json:"account"` 83 } 84 85 type ReqGetVoteUnitList struct { 86 ReqGetMemberList 87 VoteId string 88 }