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 | 278 | |
| 279 | 279 | message ItemGemCompoundRsp { |
| 280 | 280 | string reward = 3; |
| 281 | -} | |
| 282 | 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 | 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 | 66 | message Increment { |
| 60 | 67 | string key = 1; //@inject_tag: index:"unique" pri:"1" |
| 61 | 68 | int64 val = 2; |
| ... | ... | @@ -67,6 +74,14 @@ message Store { |
| 67 | 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 | 85 | message Role { |
| 71 | 86 | string id = 1; // @inject_tag: index:"unique" pri:"1" |
| 72 | 87 | string uid = 2; // @inject_tag: index:"unique" | ... | ... |