From 4a5d0bdfde97673ee5ce6a6e9084eac7c7b88583 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Thu, 16 Jun 2022 11:36:39 +0800 Subject: [PATCH] fix: email 系统 --- game.proto | 22 +++++++++++++++++++++- models.proto | 16 +++++++++++----- protocode.proto | 36 ++++++++++++++++++++++-------------- 3 files changed, 54 insertions(+), 20 deletions(-) diff --git a/game.proto b/game.proto index 070420d..f6924c7 100644 --- a/game.proto +++ b/game.proto @@ -103,4 +103,24 @@ message HeroUpLevelReq { message HeroUpLevelRsp { models.Hero hero = 1; -} \ No newline at end of file +} + +message EmailListReq {} + +message EmailListRsp { + repeated models.Email emails = 1; +} + +message EmailDrawAllReq {} + +message EmailDrawOneReq {} + +message EmailDrawRsp {} + +message EmailCheckRar {} + +message EmailDelReq{} + +message EmailDelRsp{ + repeated string delIds = 1; +} diff --git a/models.proto b/models.proto index 5add5d3..fce1535 100644 --- a/models.proto +++ b/models.proto @@ -41,11 +41,6 @@ message Equipment { int32 pos = 7; } -message Prop { - string id = 1; // @inject_tag: index:"unique" pri:"1" - int64 count = 2; -} - message Team { string id = 1; // @inject_tag: index:"unique" pri:"1" string role_id = 2; @@ -54,6 +49,17 @@ message Team { string hero_id3 = 5; } +message Email { + string id = 1; + string role_id = 2; + string title = 3; // 标题 + string stitle = 4; // 小标题 + string content = 5; // 邮件正文 + string attachments = 6; // 邮件附件 + int32 status = 7; // 邮件状态: 未读, 已读,已领取 + int64 createTime = 8; +} + message Increment { string key = 1; //@inject_tag: index:"unique" pri:"1" int64 val = 2; diff --git a/protocode.proto b/protocode.proto index 4644ae9..454db37 100644 --- a/protocode.proto +++ b/protocode.proto @@ -6,19 +6,27 @@ package protocode; enum ProtoCode { UNKNOWN = 0; - HeartRpc = 1; - LoginRpc = 2; - RoleStartBattleRpc = 3; - RoleEndBattleRpc = 4; - HeroUpLevelRpc = 5; - CreateRpc = 6; - ChangeTeamRpc = 7; - HeroEquipReferRpc = 8; - RoleClearItemsRpc = 9; - EquipmentDelRpc = 10; - DisConnectNty = 11; - RoleUpdatePropertyNty = 12; - RoleUpdateItemsNty = 13; - EquipmentAddNty = 14; + HeartRpc = 501; + LoginRpc = 502; + CreateRpc = 503; + ChangeTeamRpc = 504; + HeroEquipReferRpc = 505; + RoleClearItemsRpc = 506; + RoleStartBattleRpc = 507; + RoleEndBattleRpc = 508; + EquipmentDelRpc = 509; + HeroUpLevelRpc = 510; + EmailListRpc = 511; + EmailDrawAllRpc = 512; + EmailDrawOneRpc = 513; + EmailCheckRpc = 514; + EmailDelRpc = 515; + + DisConnectNty = 1001; + RoleUpdatePropertyNty = 1002; + RoleUpdateItemsNty = 1003; + EquipmentAddNty = 1004; + + } \ No newline at end of file -- libgit2 0.21.2