Commit 2eebf3019f7e2a7c6b08470f8dfd59b258ea01cf
1 parent
43fb22d7
feat: gemSlot and CDKEY
Showing
3 changed files
with
27 additions
and
1 deletions
Show diff stats
game.proto
@@ -278,4 +278,14 @@ message ItemGemCompoundReq { | @@ -278,4 +278,14 @@ message ItemGemCompoundReq { | ||
278 | 278 | ||
279 | message ItemGemCompoundRsp { | 279 | message ItemGemCompoundRsp { |
280 | string reward = 3; | 280 | string reward = 3; |
281 | -} | ||
282 | \ No newline at end of file | 281 | \ No newline at end of file |
282 | +} | ||
283 | + | ||
284 | +message GemSliceReq { | ||
285 | + string slot_id = 1; | ||
286 | + map<string,int32> costs = 2; | ||
287 | + int32 attention_id = 3; | ||
288 | +} | ||
289 | + | ||
290 | +message GemSliceRsp { | ||
291 | + models.GemSlot gem_slot = 1; | ||
292 | +} |
models.proto
@@ -56,6 +56,13 @@ message Email { | @@ -56,6 +56,13 @@ message Email { | ||
56 | int64 created_at = 8; | 56 | int64 created_at = 8; |
57 | } | 57 | } |
58 | 58 | ||
59 | +message CDkey { | ||
60 | + string cdkey = 1; // @inject_tag: index:"unique" pri:"1" | ||
61 | + string reward = 2; | ||
62 | + int64 expire = 3; | ||
63 | + int64 create = 4; | ||
64 | +} | ||
65 | + | ||
59 | message Increment { | 66 | message Increment { |
60 | string key = 1; //@inject_tag: index:"unique" pri:"1" | 67 | string key = 1; //@inject_tag: index:"unique" pri:"1" |
61 | int64 val = 2; | 68 | int64 val = 2; |
@@ -67,6 +74,14 @@ message Store { | @@ -67,6 +74,14 @@ message Store { | ||
67 | map<string,int32> pay_r = 3; // buy item by money | 74 | map<string,int32> pay_r = 3; // buy item by money |
68 | } | 75 | } |
69 | 76 | ||
77 | +message GemSlot { | ||
78 | + string id = 1; // @inject_tag: index:"unique" pri:"1" | ||
79 | + string role_id = 2; | ||
80 | + int32 slot = 3; | ||
81 | + map<string, int32> reward = 4; | ||
82 | + int64 end_time = 5; | ||
83 | +} | ||
84 | + | ||
70 | message Role { | 85 | message Role { |
71 | string id = 1; // @inject_tag: index:"unique" pri:"1" | 86 | string id = 1; // @inject_tag: index:"unique" pri:"1" |
72 | string uid = 2; // @inject_tag: index:"unique" | 87 | string uid = 2; // @inject_tag: index:"unique" |
protocode.proto
@@ -36,6 +36,7 @@ enum ProtoCode | @@ -36,6 +36,7 @@ enum ProtoCode | ||
36 | EmailDelRpc = 528; | 36 | EmailDelRpc = 528; |
37 | StoreBuyRpc = 529; | 37 | StoreBuyRpc = 529; |
38 | ItemGemCompoundRpc = 530; | 38 | ItemGemCompoundRpc = 530; |
39 | + GemSliceRpc = 531; | ||
39 | 40 | ||
40 | DisConnectNty = 1001; | 41 | DisConnectNty = 1001; |
41 | RoleUpdatePropertyNty = 1002; | 42 | RoleUpdatePropertyNty = 1002; |