Commit f725ea29c1806f14c15502406a83b4269193f76b

Authored by zhangqijia
1 parent 32543f8c

udpate

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