Commit 4a5d0bdfde97673ee5ce6a6e9084eac7c7b88583

Authored by zhangqijia
1 parent 3f04a5cc

fix: email 系统

Showing 3 changed files with 54 additions and 20 deletions   Show diff stats
@@ -103,4 +103,24 @@ message HeroUpLevelReq { @@ -103,4 +103,24 @@ message HeroUpLevelReq {
103 103
104 message HeroUpLevelRsp { 104 message HeroUpLevelRsp {
105 models.Hero hero = 1; 105 models.Hero hero = 1;
106 -}  
107 \ No newline at end of file 106 \ No newline at end of file
  107 +}
  108 +
  109 +message EmailListReq {}
  110 +
  111 +message EmailListRsp {
  112 + repeated models.Email emails = 1;
  113 +}
  114 +
  115 +message EmailDrawAllReq {}
  116 +
  117 +message EmailDrawOneReq {}
  118 +
  119 +message EmailDrawRsp {}
  120 +
  121 +message EmailCheckRar {}
  122 +
  123 +message EmailDelReq{}
  124 +
  125 +message EmailDelRsp{
  126 + repeated string delIds = 1;
  127 +}
@@ -41,11 +41,6 @@ message Equipment { @@ -41,11 +41,6 @@ message Equipment {
41 int32 pos = 7; 41 int32 pos = 7;
42 } 42 }
43 43
44 -message Prop {  
45 - string id = 1; // @inject_tag: index:"unique" pri:"1"  
46 - int64 count = 2;  
47 -}  
48 -  
49 message Team { 44 message Team {
50 string id = 1; // @inject_tag: index:"unique" pri:"1" 45 string id = 1; // @inject_tag: index:"unique" pri:"1"
51 string role_id = 2; 46 string role_id = 2;
@@ -54,6 +49,17 @@ message Team { @@ -54,6 +49,17 @@ message Team {
54 string hero_id3 = 5; 49 string hero_id3 = 5;
55 } 50 }
56 51
  52 +message Email {
  53 + string id = 1;
  54 + string role_id = 2;
  55 + string title = 3; // 标题
  56 + string stitle = 4; // 小标题
  57 + string content = 5; // 邮件正文
  58 + string attachments = 6; // 邮件附件
  59 + int32 status = 7; // 邮件状态: 未读, 已读,已领取
  60 + int64 createTime = 8;
  61 +}
  62 +
57 message Increment { 63 message Increment {
58 string key = 1; //@inject_tag: index:"unique" pri:"1" 64 string key = 1; //@inject_tag: index:"unique" pri:"1"
59 int64 val = 2; 65 int64 val = 2;
@@ -6,19 +6,27 @@ package protocode; @@ -6,19 +6,27 @@ package protocode;
6 enum ProtoCode 6 enum ProtoCode
7 { 7 {
8 UNKNOWN = 0; 8 UNKNOWN = 0;
9 - HeartRpc = 1;  
10 - LoginRpc = 2;  
11 - RoleStartBattleRpc = 3;  
12 - RoleEndBattleRpc = 4;  
13 - HeroUpLevelRpc = 5;  
14 - CreateRpc = 6;  
15 - ChangeTeamRpc = 7;  
16 - HeroEquipReferRpc = 8;  
17 - RoleClearItemsRpc = 9;  
18 - EquipmentDelRpc = 10;  
19 - DisConnectNty = 11;  
20 - RoleUpdatePropertyNty = 12;  
21 - RoleUpdateItemsNty = 13;  
22 - EquipmentAddNty = 14; 9 + HeartRpc = 501;
  10 + LoginRpc = 502;
  11 + CreateRpc = 503;
  12 + ChangeTeamRpc = 504;
  13 + HeroEquipReferRpc = 505;
  14 + RoleClearItemsRpc = 506;
  15 + RoleStartBattleRpc = 507;
  16 + RoleEndBattleRpc = 508;
  17 + EquipmentDelRpc = 509;
  18 + HeroUpLevelRpc = 510;
  19 + EmailListRpc = 511;
  20 + EmailDrawAllRpc = 512;
  21 + EmailDrawOneRpc = 513;
  22 + EmailCheckRpc = 514;
  23 + EmailDelRpc = 515;
  24 +
  25 + DisConnectNty = 1001;
  26 + RoleUpdatePropertyNty = 1002;
  27 + RoleUpdateItemsNty = 1003;
  28 + EquipmentAddNty = 1004;
  29 +
  30 +
23 31
24 } 32 }
25 \ No newline at end of file 33 \ No newline at end of file