diff --git a/models.proto b/models.proto index a53b73f..521fef2 100644 --- a/models.proto +++ b/models.proto @@ -143,4 +143,14 @@ message Activity { map actime = 2; map common_sign = 3; map act_sign = 4; +} + +message Task { + string id = 1; // @inject_tag: index:"unique" pri:"1" + map task_time = 2; + map daily_task = 3; + map week_task = 4; + map month_task = 5; + + map specify_task = 6; } \ No newline at end of file diff --git a/protocode.proto b/protocode.proto index 9f450a8..803a561 100644 --- a/protocode.proto +++ b/protocode.proto @@ -64,12 +64,13 @@ enum ProtoCode DisConnectNty = 1001; RoleUpdatePropertyNty = 1002; RoleUpdateItemsNty = 1003; - HeroAddNty = 1004; - HeroUpdatePropertyNty = 1005; - EmailNewNty = 1006; - EquipmentAddNty = 1007; - StoreUpdatePropertyNty = 1008; - ActivityPropertyNty = 1009; - ActivityCirNty = 1010; + RoleTaskUpdateNty = 1004; + HeroAddNty = 1005; + HeroUpdatePropertyNty = 1006; + EmailNewNty = 1007; + EquipmentAddNty = 1008; + StoreUpdatePropertyNty = 1009; + ActivityPropertyNty = 1010; + ActivityCirNty = 1011; } \ No newline at end of file diff --git a/role.proto b/role.proto index b7d1e5c..a048acb 100644 --- a/role.proto +++ b/role.proto @@ -31,6 +31,8 @@ message LoginRsp { models.Activity activity = 7; map activity_open = 8; int64 time_now = 9; + models.Task task = 10; + map task_open = 11; } message CreateRar { @@ -101,6 +103,11 @@ message RoleTaskRar { string reward = 3; } +message RoleTaskUpdateNty { + repeated string keys = 1; + models.Task task = 2; +} + message RoleOpenBoxReq { map costs = 1; } -- libgit2 0.21.2