Commit a552f5d0e80bb805dac51eed31a0c155d7cd5623

Authored by zhangqijia
1 parent e1f50907

修改account、game

Showing 2 changed files with 8 additions and 7 deletions   Show diff stats
account.proto
... ... @@ -11,7 +11,7 @@ message ServiceInfo {
11 11 }
12 12  
13 13 message AccountInfo{
14   - string phone = 2;
  14 + string phone = 2; // @inject_tag: index:"unique"
15 15 string password = 3;
16 16 int64 uid = 4;
17 17 string device = 5;
... ...
game.proto
... ... @@ -5,7 +5,7 @@ package game;
5 5 import "public.proto";
6 6  
7 7 message Hero {
8   - int64 id = 1;
  8 + int64 id = 1; // @inject_tag: index:"unique"
9 9 int64 role_id = 2;
10 10 int32 type = 3;
11 11 int32 level = 4;
... ... @@ -15,25 +15,25 @@ message Hero {
15 15 }
16 16  
17 17 message Equipment {
18   - int64 id = 1;
19   - int64 roleid = 2;
  18 + int64 id = 1; // @inject_tag: index:"unique"
  19 + int64 role_id = 2;
20 20 int64 type = 3;
21 21 bool equip = 4;
22 22 bool enhance_level = 5;
23 23 }
24 24  
25 25 message Prop {
26   - int64 id = 1;
  26 + int64 id = 1; // @inject_tag: index:"unique"
27 27 int64 count = 2;
28 28 }
29 29  
30 30 message Team {
31   - int64 id = 1;
  31 + int64 id = 1; // @inject_tag: index:"unique"
32 32 string hero_ids = 2;
33 33 }
34 34  
35 35 message Role{
36   - int64 id = 1;
  36 + int64 id = 1; // @inject_tag: index:"unique"
37 37 int64 uid = 2;
38 38 string device = 3;
39 39 string nick = 4;
... ... @@ -44,6 +44,7 @@ message Role{
44 44 int64 hp_max = 8;
45 45 string buy_r = 11;
46 46 string pay_r = 12;
  47 + bool del = 13;
47 48 }
48 49  
49 50 message Token {
... ...