File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 * [ 用户注册] ( api/user/register.md )
1010 * [ 用户登录] ( api/user/login.md )
1111 * [ 用户校验登录] ( api/user/checkLogin.md )
12+ * [ 用户退出登录] ( api/user/logout.md )
1213 * [ 保存商户] ( api/store/saveStore.md )
1314
1415* 服务端接口协议
Original file line number Diff line number Diff line change 1+
2+
3+ ** 1\. 用户退出登录**
4+ ###### 接口功能
5+ > 用户通过web端或APP退出系统
6+
7+ ###### URL
8+ > [ http://api.java110.com:8008/api/user.service.logout ] ( http://api.java110.com:8008/api/user.service.logout )
9+
10+ ###### 支持格式
11+ > JSON
12+
13+ ###### HTTP请求方式
14+ > POST
15+
16+ ###### 请求参数(header部分)
17+ | 参数名称| 约束| 类型| 长度| 描述| 取值说明|
18+ | :-: | :-: | :-: | :-: | :-: | :-:|
19+ | app_id| 1| String| 30| 应用ID| Api服务分配 |
20+ | transaction_id| 1| String| 30| 请求流水号| 不能重复 1000000000+YYYYMMDDhhmmss+6位序列 |
21+ | sign| 1| String| -| 签名| 请参考签名说明|
22+ | req_time| 1| String| -| 请求时间| YYYYMMDDhhmmss|
23+
24+ ###### 请求参数(body部分)
25+ | 参数名称| 约束| 类型| 长度| 描述| 取值说明|
26+ | :-: | :-: | :-: | :-: | :-: | :-: |
27+ | token| ?| String| 64| 鉴权码| 鉴权码|
28+
29+ ###### 返回协议
30+
31+ 当http返回状态不为200 时请求处理失败 body内容为失败的原因
32+
33+ 当http返回状态为200时请求处理成功,body内容为返回内容,
34+
35+
36+
37+
38+ ###### 举例
39+ > 地址:[ http://api.java110.com:8008/api/user.service.logout ] ( http://api.java110.com:8008/api/user.service.logout )
40+
41+ ``` javascript
42+ 请求头信息:
43+ Content- Type: application/ json
44+ USER_ID : 1234
45+ APP_ID : 8000418002
46+ TRANSACTION_ID : 10029082726
47+ REQ_TIME : 20181113225612
48+ SIGN : aabdncdhdbd878sbdudn898
49+ 请求报文:
50+ {
51+ " token" : " eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqYXZhMTEwIiwianRpIjoiYWQ0ZjRjODUyZjI4NGY0Yjk4ODQzZDE3MmI4MmNmYTYifQ.p0KrdYX3-bifZ036WYCoyFQjoAo5_7bY1NXTwwOHPuk"
52+ }
53+ 返回报文:
54+ 退出登录成功
55+ ```
You can’t perform that action at this time.
0 commit comments