yokyo 5 年 前
コミット
ab070271bc
3 ファイル変更33 行追加7 行削除
  1. 1 0
      redis.proto
  2. 4 4
      structs.proto
  3. 28 3
      tajmahal.proto

+ 1 - 0
redis.proto

@@ -27,6 +27,7 @@ message User {
     int64  birthday     = 12;   // 生日
     uint64 score        = 13;   // 积分
     int32 kickoff       = 14;   // 当前是否被踢(临时数据)
+    string curTitle     = 15;   // 称号
     string eosWallet    = 20;   // 钱包地址
     string ethWallet    = 21;
     string usdtWallet   = 22;

+ 4 - 4
structs.proto

@@ -24,13 +24,13 @@ message Item {
 /// 一封邮件
 message Mail {
     int64  id                   = 1;
-    string title                = 2;
+    string subject              = 2;
     string body                 = 3;
     int64  ts                   = 4;
     string sender               = 5;
     repeated string itemIds     = 6;    // 可领取的道具列表,空表示没有
-    string button               = 7;    // 按钮上的文字,如果空,表示没有按钮
-    int64 expires               = 9;    // 过期时间,0 永不过期
+    string btnText              = 7;    // 按钮上的文字,如果空,表示没有按钮
+    int64 expiresAt             = 9;    // 过期时间,0 永不过期
     int32 read                  = 10;   // 是否已读
     int32 valid                 = 12;   // 是否有效
 }
@@ -38,6 +38,6 @@ message Mail {
 // 多语言内容,提前配置
 message LangText {
     int32 lang              = 1;
-    string emailTitleTpl    = 2;
+    string emailSubjectTpl    = 2;
     string emailBodyTpl     = 3;
 }

+ 28 - 3
tajmahal.proto

@@ -1,7 +1,7 @@
 syntax="proto3";
 package protos;
 
-import "structs.proto";
+//import "structs.proto";
 import "enums.proto";
 
 /// 逻辑服务器之外(大厅,对应进程 tajmahal )的到客户端的协议
@@ -39,8 +39,7 @@ message S_Login {
     int64 birthday              = 6;
     int32 gender                = 7;
     int64 score                 = 8;
-    string curName              = 9;        // 当前使用称号
-    repeated Item items         = 10;       // 道具(背包)
+    string curTitle             = 9;        // 当前使用称号
     map<string, int64> balances = 12;       // 币,数量
     map<string, string> wallets = 14;       // 钱包地址
     string verServer            = 16;
@@ -50,6 +49,32 @@ message S_Login {
     int32 volFg                 = 22;       // 前景音量
 }
 
+// 背包
+message C_UserPack {
+
+}
+
+message S_UserPack {
+
+}
+
+// 用户称号
+message C_UserTitles {
+
+}
+
+message S_UserTitles {
+
+}
+
+// 身上装饰(武器)
+message C_UserAccessories {
+
+}
+
+message S_UserAccessories {
+
+}
 
 /// 登出逻辑服务器
 message C_Logout {