刷题无忧

微信小程序后端接口


2.2 - 岗位切换

<p>[TOC]</p> <h5>简要描述:</h5> <ul> <li>小程序 - 岗位切换接口</li> </ul> <h5>请求URL:</h5> <ul> <li><code>https://xx.com/api/position/positionChange</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </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;">userId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">Long</td> <td>用户ID</td> </tr> <tr> <td style="text-align: left;">satoken</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>授权码</td> </tr> </tbody> </table> <ul> <li>说明: <ul> <li>未登录时,点击切换岗位 &gt; 先让用户登录</li> <li>selectPositionId 来自岗位列表中的 ID</li> </ul></li> </ul> <h5>请求示例</h5> <pre><code>{ &amp;quot;userId&amp;quot;: 1, &amp;quot;selectPositionId&amp;quot;: 2, }</code></pre> <h5>返回示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;desc&amp;quot;: &amp;quot;成功&amp;quot; }</code></pre> <h5>重要说明</h5> <ul> <li>点击左边岗位,调后端接口切换选择岗位</li> </ul>

页面列表

ITEM_HTML