43、后台:游戏列表/修改游戏
<ul>
<li>游戏列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://api.com/admin/gameType/list</code> </li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>GET</p>
<p><strong>请求参数说明</strong> </p>
</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">gameTypeName</td>
<td style="text-align: left;">string</td>
<td>游戏名称</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;total&quot;: &quot;58&quot;,
&quot;code&quot;: 200,
&quot;rows&quot;: [
{
&quot;gameId&quot;: &quot;1&quot;,
&quot;hot&quot;: true,
&quot;id&quot;: &quot;1&quot;,
&quot;imgUrl&quot;: &quot;https://assets.1kuaisudai.com/media/images/game/csgo.png&quot;,
&quot;lootbox&quot;: false,
&quot;lootboxGameId&quot;: &quot;&quot;,
&quot;name&quot;: &quot;CS:GOCS:GO&quot;,
&quot;platform&quot;: &quot;tf&quot;
},
{
&quot;gameId&quot;: &quot;2&quot;,
&quot;hot&quot;: true,
&quot;id&quot;: &quot;2&quot;,
&quot;imgUrl&quot;: &quot;https://assets.1kuaisudai.com/media/images/game/dota2.png&quot;,
&quot;lootbox&quot;: false,
&quot;lootboxGameId&quot;: &quot;&quot;,
&quot;name&quot;: &quot;Dota 2&quot;,
&quot;platform&quot;: &quot;tf&quot;
},
{
&quot;gameId&quot;: &quot;3&quot;,
&quot;hot&quot;: true,
&quot;id&quot;: &quot;3&quot;,
&quot;imgUrl&quot;: &quot;https://assets.1kuaisudai.com/media/images/game/lol.png&quot;,
&quot;lootbox&quot;: false,
&quot;lootboxGameId&quot;: &quot;&quot;,
&quot;name&quot;: &quot;League of Legends 英雄联盟&quot;,
&quot;platform&quot;: &quot;tf&quot;
}
],
&quot;message&quot;: &quot;&quot;
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">string</td>
<td>游戏名称</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">string</td>
<td>id</td>
</tr>
<tr>
<td style="text-align: left;">imgUrl</td>
<td style="text-align: left;">string</td>
<td>imgUrl</td>
</tr>
<tr>
<td style="text-align: left;">hot</td>
<td style="text-align: left;">int</td>
<td>hot</td>
</tr>
</tbody>
</table>
<ul>
<li>修改游戏</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://api.com/admin/gameType/update</code> </li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>POST</p>
<p><strong>请求参数说明</strong> </p>
</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">gameTypeName</td>
<td style="text-align: left;">string</td>
<td>游戏名称</td>
</tr>
<tr>
<td style="text-align: left;">lootbox</td>
<td style="text-align: left;">boolean</td>
<td>是否夺宝游戏</td>
</tr>
<tr>
<td style="text-align: left;">enable</td>
<td style="text-align: left;">boolean</td>
<td>是否开启</td>
</tr>
<tr>
<td style="text-align: left;">hot</td>
<td style="text-align: left;">boolean</td>
<td>是否热门</td>
</tr>
<tr>
<td style="text-align: left;">imgUrl</td>
<td style="text-align: left;">string</td>
<td>游戏imgUrl</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 200,
&quot;message&quot;: &quot;&quot;
}</code></pre>
<ul>
<li>三方游戏下注记录</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://api.com/admin/game/gameTxns/page</code> </li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>GET</p>
<p><strong>请求参数说明</strong> </p>
</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">gameType</td>
<td style="text-align: left;">string</td>
<td>游戏名称</td>
</tr>
<tr>
<td style="text-align: left;">username</td>
<td style="text-align: left;">string</td>
<td>用户名</td>
</tr>
<tr>
<td style="text-align: left;">ancestor</td>
<td style="text-align: left;">long</td>
<td>上级用户ID</td>
</tr>
<tr>
<td style="text-align: left;">topAncestor</td>
<td style="text-align: left;">long</td>
<td>总代ID</td>
</tr>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">int</td>
<td>页码</td>
</tr>
<tr>
<td style="text-align: left;">rows</td>
<td style="text-align: left;">int</td>
<td>每页数量</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;total&quot;: &quot;58&quot;,
&quot;code&quot;: 200,
&quot;rows&quot;: [
{
&quot;betAmount&quot;: &quot;10&quot;,
&quot;betResult&quot;: &quot;53&quot;,
&quot;betSelection&quot;: &quot;attack&quot;,
&quot;betTime&quot;: 1694237794000,
&quot;betType&quot;: &quot;SPOU&quot;,
&quot;brand&quot;: &quot;HB&quot;,
&quot;createTime&quot;: 1694237794000,
&quot;currency&quot;: &quot;CNY&quot;,
&quot;earnings&quot;: &quot;-10&quot;,
&quot;eventId&quot;: null,
&quot;gameImgUrl&quot;: null,
&quot;gameType&quot;: &quot;DOTA 2 Attack&quot;,
&quot;gameTypeId&quot;: &quot;39&quot;,
&quot;id&quot;: &quot;907262321301127168&quot;,
&quot;lootbox&quot;: null,
&quot;odds&quot;: &quot;1.97&quot;,
&quot;platform&quot;: &quot;tf&quot;,
&quot;platformTxId&quot;: &quot;CDVAJ228868F3632MGIELRA85D&quot;,
&quot;realBetAmount&quot;: &quot;10&quot;,
&quot;realEarnings&quot;: &quot;-10&quot;,
&quot;requestSource&quot;: &quot;mobile-browser&quot;,
&quot;requireAmount&quot;: null,
&quot;resultStatus&quot;: 1,
&quot;settleTime&quot;: null,
&quot;settlementStatus&quot;: &quot;settled&quot;,
&quot;ticketNum&quot;: &quot;CDVAJ228868F3632MGIELRA85D&quot;,
&quot;updateTime&quot;: 1694237801000,
&quot;userId&quot;: &quot;906168358632685568&quot;,
&quot;voidType&quot;: null
}
],
&quot;message&quot;: &quot;&quot;
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">brand</td>
<td style="text-align: left;">string</td>
<td>品牌</td>
</tr>
</tbody>
</table>