登录(注册)
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户登录注册接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://chop-api.jpegonapechain.meme/api/auth/login</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
<li>Content-Type: application/json</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">initData</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>tg 获取的信息</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;message&quot;: &quot;登录成功&quot;,
&quot;token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidGVsZWdyYW1JZCI6IjUxNjAxNDk3MzAiLCJpYXQiOjE3MzA3OTgzNjksImV4cCI6MTczMzM5MDM2OX0.zaSKa_ItnFdRVr6IlPhxeiRuWQ3dI_LEQUjBCkv-RDs&quot;,
&quot;user&quot;: {
&quot;id&quot;: 1,
&quot;telegramId&quot;: &quot;5160149730&quot;,
&quot;username&quot;: &quot;Zoyonlian&quot;,
&quot;firstName&quot;: &quot;Zo&quot;,
&quot;lastName&quot;: &quot;YonLian&quot;,
&quot;balance&quot;: 0
}
}</code></pre>
<h5>返回参数说明</h5>
<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;">token</td>
<td style="text-align: left;">string</td>
<td>jwt token</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>tg 获取信息 参考::<a href="https://core.telegram.org/bots/webapps">https://core.telegram.org/bots/webapps</a></li>
</ul>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=1b62b10b4cc509ca09c0fa0d6036e3d1&amp;file=file.png" alt="" /></p>