Commit f3d0853be4bc7062a327ed11b0e74ef10912b49e
1 parent
45cf1566
feat: 一个基于redis的自增ID功能。
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
models.proto
... | ... | @@ -41,6 +41,11 @@ message Team { |
41 | 41 | string hero_id3 = 5; |
42 | 42 | } |
43 | 43 | |
44 | +message Increment { | |
45 | + string key = 1; //@inject_tag: index:"unique" pri:"1" | |
46 | + int64 val = 2; | |
47 | +} | |
48 | + | |
44 | 49 | message Role { |
45 | 50 | string id = 1; // @inject_tag: index:"unique" pri:"1" |
46 | 51 | string uid = 2;// @inject_tag: index:"unique" |
... | ... | @@ -54,4 +59,5 @@ message Role { |
54 | 59 | string buy_r = 11; |
55 | 60 | string pay_r = 12; |
56 | 61 | bool del = 13; |
62 | + map<string, int64> incres = 14; | |
57 | 63 | } | ... | ... |