From 2eebf3019f7e2a7c6b08470f8dfd59b258ea01cf Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Mon, 14 Nov 2022 14:12:51 +0800 Subject: [PATCH] feat: gemSlot and CDKEY --- game.proto | 12 +++++++++++- models.proto | 15 +++++++++++++++ protocode.proto | 1 + 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/game.proto b/game.proto index 86c2292..5c05791 100644 --- a/game.proto +++ b/game.proto @@ -278,4 +278,14 @@ message ItemGemCompoundReq { message ItemGemCompoundRsp { string reward = 3; -} \ No newline at end of file +} + +message GemSliceReq { + string slot_id = 1; + map costs = 2; + int32 attention_id = 3; +} + +message GemSliceRsp { + models.GemSlot gem_slot = 1; +} diff --git a/models.proto b/models.proto index 7d96c8b..fabc498 100644 --- a/models.proto +++ b/models.proto @@ -56,6 +56,13 @@ message Email { int64 created_at = 8; } +message CDkey { + string cdkey = 1; // @inject_tag: index:"unique" pri:"1" + string reward = 2; + int64 expire = 3; + int64 create = 4; +} + message Increment { string key = 1; //@inject_tag: index:"unique" pri:"1" int64 val = 2; @@ -67,6 +74,14 @@ message Store { map pay_r = 3; // buy item by money } +message GemSlot { + string id = 1; // @inject_tag: index:"unique" pri:"1" + string role_id = 2; + int32 slot = 3; + map reward = 4; + int64 end_time = 5; +} + message Role { string id = 1; // @inject_tag: index:"unique" pri:"1" string uid = 2; // @inject_tag: index:"unique" diff --git a/protocode.proto b/protocode.proto index d811874..b51e1d1 100644 --- a/protocode.proto +++ b/protocode.proto @@ -36,6 +36,7 @@ enum ProtoCode EmailDelRpc = 528; StoreBuyRpc = 529; ItemGemCompoundRpc = 530; + GemSliceRpc = 531; DisConnectNty = 1001; RoleUpdatePropertyNty = 1002; -- libgit2 0.21.2