From 1dcfee637951e7e925dd09e5056745e2aeef58a1 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Thu, 15 Dec 2022 11:20:29 +0800 Subject: [PATCH] feat: activity --- activity.proto | 24 ++++++++++++++++++++++++ models.proto | 7 +++++++ protocode.proto | 3 +++ 3 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 activity.proto diff --git a/activity.proto b/activity.proto new file mode 100644 index 0000000..d6a6fdb --- /dev/null +++ b/activity.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; +option go_package = "../pb;pb"; + +package game; +//import "google/protobuf/empty.proto"; +import "models.proto"; + +// rpc = req + rsp 请求/返回 +// rpc = rar + rar 自回包 + + +message ActivitySignReq { + int32 act_id = 1; + int32 index = 2; +} + +message ActivitySignRsp { + string reward = 1; +} + +message ActivityPropertyNty { + repeated string keys = 1; + models.Activity activity = 2; +} \ No newline at end of file diff --git a/models.proto b/models.proto index 1d92148..d4fb696 100644 --- a/models.proto +++ b/models.proto @@ -136,4 +136,11 @@ message Role { int64 ctime = 28; // 创建时间 string channel = 29; map climb_rs = 30; // reward and start +} + +message Activity { + string id = 1; // @inject_tag: index:"unique" pri:"1" + map actime = 2; + map act1 = 3; // 通用签到 + map act2 = 4; // 活动签到 } \ No newline at end of file diff --git a/protocode.proto b/protocode.proto index 7253701..5c9087d 100644 --- a/protocode.proto +++ b/protocode.proto @@ -51,6 +51,8 @@ enum ProtoCode GemSliceRewardRpc = 604; ItemGemCompoundRpc = 605; + ActivitySignRpc = 701; + DisConnectNty = 1001; RoleUpdatePropertyNty = 1002; @@ -58,5 +60,6 @@ enum ProtoCode EmailNewNty = 1004; EquipmentAddNty = 1005; StoreUpdatePropertyNty = 1006; + ActivityPropertyNty = 1007; } \ No newline at end of file -- libgit2 0.21.2