登录
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户登录接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://food.taihuyun.vip/api/foodcash.user/login</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </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;">applet_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>应用程序ID</td>
</tr>
<tr>
<td style="text-align: left;">shop_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>门店ID</td>
</tr>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户身份验证的令牌</td>
</tr>
<tr>
<td style="text-align: left;">user_name</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户名</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>密码</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
"code": 1,
"msg": "success",
"data": {
"user": {
"shop_clerk_id": 8,
"shop_id": 1,
"real_name": "吴天宇",
"mobile": "17320038823",
"pwd": "625df02823082763d377dc21464e1ddb",
"status": {
"text": "店长",
"value": 20
},
"user_id": 6,
"applet_id": 1,
"last_login_datetime": "2023-01-11 17:02:52",
"create_time": "2022-06-14 18:56:41",
"update_time": "2023-01-11 17:02:30",
"user": {
"user_id": 6,
"union_id": "oV9Ls0gOSe05KV4UZXUR3s3KkeQ0",
"open_id": "ov9ED0e9NnXRBPuGhkmG_jh-yztI",
"user_type": 1,
"user_name": "",
"password": "",
"nickname": "老张",
"avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/kdpzicPlXq8vsXAqegmZG4Ft7rqcoAf7zNcssUcJ6KJiawly55FApBp8lf3COp8wtJHIs2hslARRibtYFzU1BkCMg/132",
"gender": "未知",
"country": "",
"province": "",
"city": "",
"money": "0.00",
"linkman": "",
"phone": "18742045357",
"pay": "0.01",
"score": 0,
"converted": 0,
"v": 1,
"birthday": "",
"address_id": 0,
"recommender": {
"text": "平台推荐",
"value": 0
},
"status": {
"text": "用户",
"value": 10
},
"platform": {
"text": "微信",
"value": 10
},
"is_subscribe": 0,
"agent_id": 0,
"login_count": 0,
"applet_id": 1,
"identity": {
"text": "燃除车间",
"value": 60,
"company_text": "燃除车间",
"company_value": 60
},
"position": {
"text": "",
"value": 0
},
"department_id": {
"value": 0,
"text": "全部"
},
"auth": "",
"work_no": "0000000",
"card_no": "00000002",
"is_del": 0,
"create_time": "2022-10-19 18:55:49",
"update_time": "2022-12-28 13:10:14",
"details": {},
"usable": 0
},
"token": "fc1e67069cf097e1f149517634f2f767",
"shop": {
"shop_id": 1,
"shop_name": "石化民族大食堂",
"shop_category_id": 0,
"logo": "https://food.taihuyun.vip/uploads/20220601/7c2648c6504b69c9bccafb7939060e81.png",
"front": "https://food.taihuyun.vip/uploads/20220530/44fbcb66ae95e40c87d24493edf8b2da.png",
"linkman": "sky",
"phone": "15358052238",
"shop_hours": "00:00 - 23:59",
"province": "新疆维吾尔自治区",
"city": "乌鲁木齐市",
"district": "米东区",
"address": "新疆乌鲁木齐市",
"coordinate": "43.975522,87.659912",
"poi_id": "656761524125795479",
"summary": "清真,美味",
"tang_mode": 1,
"is_order": {
"text": "开启",
"value": 1
},
"is_delivery": {
"text": "开启",
"value": 1
},
"delivery": "self",
"is_grab": {
"text": "开启",
"value": 1
},
"status": {
"text": "营业中",
"value": 1,
"status": 1
},
"out_show": {
"text": "显示",
"value": 1
},
"sort": 100,
"sf_shop_id": "",
"dada_shop_id": "",
"make_shop_id": "",
"applet_id": 1,
"is_team": 0,
"create_time": "2022-05-27 00:18:48",
"update_time": "2022-11-14 17:46:24"
}
}
}
}</code></pre>
<h5>返回参数说明</h5>
<ul>
<li>返回状态代码: 200</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;">real_name</td>
<td style="text-align: left;">string</td>
<td>用户名称</td>
</tr>
<tr>
<td style="text-align: left;">mobile</td>
<td style="text-align: left;">string</td>
<td>电话号码</td>
</tr>
<tr>
<td style="text-align: left;">status.value</td>
<td style="text-align: left;">int</td>
<td>身份说明:10:店员;20:店长</td>
</tr>
<tr>
<td style="text-align: left;">shop.shop_name</td>
<td style="text-align: left;">string</td>
<td>门店名称</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看基本参数中的参数说明</li>
</ul>