Commit a552f5d0e80bb805dac51eed31a0c155d7cd5623

Authored by zhangqijia
1 parent e1f50907

修改account、game

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