Browse Source

update login

yokyo 5 years ago
parent
commit
458557c614
1 changed files with 18 additions and 5 deletions
  1. 18 5
      login.proto

+ 18 - 5
login.proto

@@ -3,16 +3,26 @@ package protos;
 
 
 // 用户注册类型
-enum RegType{
+enum RegType {
     REG_EMAIL   = 0;
     REG_PHONE   = 1;
 }
 
+message L_Hash {
+
+}
+
+message M_Hash {
+    string hash = 1;
+    int64 ts    = 2;
+}
+
 // 请求验证码
 // 发送至邮箱(手机)
 message P_RequestVerifiCode {
     string dest     = 1;
-    string hash     = 2;
+    int64 ts        = 2;
+    string hash     = 3;
 }
 
 // 注册
@@ -25,8 +35,10 @@ message L_Register {
 }
 
 message M_Register {
-    int32 ec    = 1;
-    string url  = 2;    // 注册成功不需要再次登录的情况,相当与登录成功的跳转
+    int32 ec        = 1;
+    int64 guid      = 2;
+    string token    = 3;
+    string url      = 4;    // 注册成功不需要再次登录的情况,相当与登录成功的跳转
 }
 
 // 登录
@@ -57,4 +69,5 @@ message L_ResetByEmail {
 message M_ResetByEmail {
     int32 ec        = 1;
     string email    = 3;
-}
+}
+// 这里隐含一个重置密码的 web 页面