Commit 1dcfee637951e7e925dd09e5056745e2aeef58a1

Authored by zhangqijia
1 parent 9ae95918

feat: activity

Showing 3 changed files with 34 additions and 0 deletions   Show diff stats
activity.proto 0 → 100644
... ... @@ -0,0 +1,24 @@
  1 +syntax = "proto3";
  2 +option go_package = "../pb;pb";
  3 +
  4 +package game;
  5 +//import "google/protobuf/empty.proto";
  6 +import "models.proto";
  7 +
  8 +// rpc = req + rsp 请求/返回
  9 +// rpc = rar + rar 自回包
  10 +
  11 +
  12 +message ActivitySignReq {
  13 + int32 act_id = 1;
  14 + int32 index = 2;
  15 +}
  16 +
  17 +message ActivitySignRsp {
  18 + string reward = 1;
  19 +}
  20 +
  21 +message ActivityPropertyNty {
  22 + repeated string keys = 1;
  23 + models.Activity activity = 2;
  24 +}
0 25 \ No newline at end of file
... ...
models.proto
... ... @@ -136,4 +136,11 @@ message Role {
136 136 int64 ctime = 28; // 创建时间
137 137 string channel = 29;
138 138 map<string,string> climb_rs = 30; // reward and start
  139 +}
  140 +
  141 +message Activity {
  142 + string id = 1; // @inject_tag: index:"unique" pri:"1"
  143 + map<int32,int64> actime = 2;
  144 + map<int32,int32> act1 = 3; // 通用签到
  145 + map<int32,int32> act2 = 4; // 活动签到
139 146 }
140 147 \ No newline at end of file
... ...
protocode.proto
... ... @@ -51,6 +51,8 @@ enum ProtoCode
51 51 GemSliceRewardRpc = 604;
52 52 ItemGemCompoundRpc = 605;
53 53  
  54 + ActivitySignRpc = 701;
  55 +
54 56  
55 57 DisConnectNty = 1001;
56 58 RoleUpdatePropertyNty = 1002;
... ... @@ -58,5 +60,6 @@ enum ProtoCode
58 60 EmailNewNty = 1004;
59 61 EquipmentAddNty = 1005;
60 62 StoreUpdatePropertyNty = 1006;
  63 + ActivityPropertyNty = 1007;
61 64  
62 65 }
63 66 \ No newline at end of file
... ...