Commit cfe0c1d6fd5d7bcd6b0d5543359fcf2117db4dc2
1 parent
4a5d0bdf
feat: email 系统搭建
以及gm发送邮件接口完成
Showing
3 changed files
with
39 additions
and
14 deletions
Show diff stats
game.proto
@@ -111,16 +111,22 @@ message EmailListRsp { | @@ -111,16 +111,22 @@ message EmailListRsp { | ||
111 | repeated models.Email emails = 1; | 111 | repeated models.Email emails = 1; |
112 | } | 112 | } |
113 | 113 | ||
114 | -message EmailDrawAllReq {} | ||
115 | - | ||
116 | -message EmailDrawOneReq {} | 114 | +message EmailDrawReq { |
115 | + string id = 1; | ||
116 | +} | ||
117 | 117 | ||
118 | -message EmailDrawRsp {} | 118 | +message EmailDrawRsp { |
119 | + repeated string ids = 1; | ||
120 | + string reward = 2; | ||
121 | +} | ||
119 | 122 | ||
120 | -message EmailCheckRar {} | 123 | +message EmailCheckRar { |
124 | + string id = 1; | ||
125 | +} | ||
121 | 126 | ||
122 | -message EmailDelReq{} | 127 | +message EmailDelReq{ |
128 | +} | ||
123 | 129 | ||
124 | message EmailDelRsp{ | 130 | message EmailDelRsp{ |
125 | - repeated string delIds = 1; | 131 | + repeated string ids = 1; |
126 | } | 132 | } |
models.proto
@@ -6,7 +6,27 @@ package models; | @@ -6,7 +6,27 @@ package models; | ||
6 | 6 | ||
7 | message LogConf { | 7 | message LogConf { |
8 | string typ = 1; | 8 | string typ = 1; |
9 | - string ucode = 2; | 9 | + string desc = 2; |
10 | + string ucode = 3; | ||
11 | + string key1 = 4; | ||
12 | + string key2 = 6; | ||
13 | + string text= 7; | ||
14 | + int32 short1= 8; | ||
15 | + string int1= 9; | ||
16 | + string int2= 10; | ||
17 | + int64 long1= 11; | ||
18 | + float float1= 12; | ||
19 | + | ||
20 | + int64 cint1 = 13; | ||
21 | + int64 cint2 = 14; | ||
22 | + int64 cint3 = 15; | ||
23 | + | ||
24 | + // common role | ||
25 | + string id = 20; | ||
26 | + string name = 21; | ||
27 | + string uid = 22; | ||
28 | + int32 level = 23; | ||
29 | + string device = 24; | ||
10 | } | 30 | } |
11 | 31 | ||
12 | message Account { | 32 | message Account { |
@@ -50,13 +70,13 @@ message Team { | @@ -50,13 +70,13 @@ message Team { | ||
50 | } | 70 | } |
51 | 71 | ||
52 | message Email { | 72 | message Email { |
53 | - string id = 1; | 73 | + string id = 1; // @inject_tag: index:"unique" pri:"1" |
54 | string role_id = 2; | 74 | string role_id = 2; |
55 | string title = 3; // 标题 | 75 | string title = 3; // 标题 |
56 | string stitle = 4; // 小标题 | 76 | string stitle = 4; // 小标题 |
57 | string content = 5; // 邮件正文 | 77 | string content = 5; // 邮件正文 |
58 | string attachments = 6; // 邮件附件 | 78 | string attachments = 6; // 邮件附件 |
59 | - int32 status = 7; // 邮件状态: 未读, 已读,已领取 | 79 | + int32 status = 7; // 邮件状态: 0未读, 1已读,2 已领取 |
60 | int64 createTime = 8; | 80 | int64 createTime = 8; |
61 | } | 81 | } |
62 | 82 |
protocode.proto
@@ -17,10 +17,9 @@ enum ProtoCode | @@ -17,10 +17,9 @@ enum ProtoCode | ||
17 | EquipmentDelRpc = 509; | 17 | EquipmentDelRpc = 509; |
18 | HeroUpLevelRpc = 510; | 18 | HeroUpLevelRpc = 510; |
19 | EmailListRpc = 511; | 19 | EmailListRpc = 511; |
20 | - EmailDrawAllRpc = 512; | ||
21 | - EmailDrawOneRpc = 513; | ||
22 | - EmailCheckRpc = 514; | ||
23 | - EmailDelRpc = 515; | 20 | + EmailDrawRpc = 512; |
21 | + EmailCheckRpc = 513; | ||
22 | + EmailDelRpc = 514; | ||
24 | 23 | ||
25 | DisConnectNty = 1001; | 24 | DisConnectNty = 1001; |
26 | RoleUpdatePropertyNty = 1002; | 25 | RoleUpdatePropertyNty = 1002; |