Commit f725ea29c1806f14c15502406a83b4269193f76b
1 parent
32543f8c
udpate
Showing
3 changed files
with
3 additions
and
8 deletions
Show diff stats
account.proto
doc/login.md
@@ -70,7 +70,7 @@ $ curl --request POST 'http://192.168.0.206:8080/v1/login' \ | @@ -70,7 +70,7 @@ $ curl --request POST 'http://192.168.0.206:8080/v1/login' \ | ||
70 | ``` | 70 | ``` |
71 | 返回结果: | 71 | 返回结果: |
72 | ```shell | 72 | ```shell |
73 | -{"code":0, "message":"success", "data":{"phone":"", "uid":"","password":""}} | 73 | +{"code":0,"data":{"token":"141815055745814528"},"message":"success"} |
74 | ``` | 74 | ``` |
75 | * code = 0, 成功,客户端解析data字段就行 | 75 | * code = 0, 成功,客户端解析data字段就行 |
76 | * code !=0, 失败, message字段是提示信息 | 76 | * code !=0, 失败, message字段是提示信息 |
game.proto
@@ -11,12 +11,7 @@ message HeartReq { | @@ -11,12 +11,7 @@ message HeartReq { | ||
11 | 11 | ||
12 | //ResponseCmd RoleRsp | 12 | //ResponseCmd RoleRsp |
13 | message LoginReq { | 13 | message LoginReq { |
14 | - string uid = 1; | ||
15 | - string device = 2; | ||
16 | -} | ||
17 | - | ||
18 | -message LoginResponse { | ||
19 | - string uid = 1; | 14 | + string token = 1; |
20 | string device = 2; | 15 | string device = 2; |
21 | } | 16 | } |
22 | 17 |