From a552f5d0e80bb805dac51eed31a0c155d7cd5623 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Thu, 17 Feb 2022 15:19:31 +0800 Subject: [PATCH] 修改account、game --- account.proto | 2 +- game.proto | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/account.proto b/account.proto index 66d979d..9bb0aa5 100644 --- a/account.proto +++ b/account.proto @@ -11,7 +11,7 @@ message ServiceInfo { } message AccountInfo{ - string phone = 2; + string phone = 2; // @inject_tag: index:"unique" string password = 3; int64 uid = 4; string device = 5; diff --git a/game.proto b/game.proto index 6a9fc2f..64cfaa0 100644 --- a/game.proto +++ b/game.proto @@ -5,7 +5,7 @@ package game; import "public.proto"; message Hero { - int64 id = 1; + int64 id = 1; // @inject_tag: index:"unique" int64 role_id = 2; int32 type = 3; int32 level = 4; @@ -15,25 +15,25 @@ message Hero { } message Equipment { - int64 id = 1; - int64 roleid = 2; + int64 id = 1; // @inject_tag: index:"unique" + int64 role_id = 2; int64 type = 3; bool equip = 4; bool enhance_level = 5; } message Prop { - int64 id = 1; + int64 id = 1; // @inject_tag: index:"unique" int64 count = 2; } message Team { - int64 id = 1; + int64 id = 1; // @inject_tag: index:"unique" string hero_ids = 2; } message Role{ - int64 id = 1; + int64 id = 1; // @inject_tag: index:"unique" int64 uid = 2; string device = 3; string nick = 4; @@ -44,6 +44,7 @@ message Role{ int64 hp_max = 8; string buy_r = 11; string pay_r = 12; + bool del = 13; } message Token { -- libgit2 0.21.2