diff --git a/meowchat/content/content.proto b/meowchat/content/content.proto index 42ec2b0..bfab917 100644 --- a/meowchat/content/content.proto +++ b/meowchat/content/content.proto @@ -332,6 +332,14 @@ message CountDonateByPlanResp { int64 total = 1; } +message GetContentMissionReq { + string userId = 1; +} + +message GetContentMissionResp { + int64 ContentTime = 1; +} + service ContentService { rpc SearchCat(SearchCatReq) returns (SearchCatResp); rpc ListCat(ListCatReq) returns (ListCatResp); @@ -368,4 +376,5 @@ service ContentService { rpc RetrieveUserFish(RetrieveUserFishReq) returns (RetrieveUserFishResp); rpc CountDonateByUser(CountDonateByUserReq) returns (CountDonateByUserResp); rpc CountDonateByPlan(CountDonateByPlanReq) returns (CountDonateByPlanResp); + rpc GetContentMission(GetContentMissionReq) returns (GetContentMissionResp); } diff --git a/meowchat/core_api/core_api.proto b/meowchat/core_api/core_api.proto index 4799a59..41b0481 100644 --- a/meowchat/core_api/core_api.proto +++ b/meowchat/core_api/core_api.proto @@ -40,9 +40,12 @@ service user { rpc SearchUser(SearchUserReq) returns (SearchUserResp){ option(http.get) = "/user/search_user"; } - rpc CheckIn (CheckInReq) returns (CheckInResp){ + rpc CheckIn(CheckInReq) returns (CheckInResp){ option(http.get) = "/user/check_in"; } + rpc GetMission(GetMissionReq) returns (GetMissionResp){ + option(http.get) = "/user/get_mission"; + } } service auth { diff --git a/meowchat/core_api/user.proto b/meowchat/core_api/user.proto index da4c9c8..fe1451a 100644 --- a/meowchat/core_api/user.proto +++ b/meowchat/core_api/user.proto @@ -48,3 +48,17 @@ message CheckInResp { int64 getFishTimes = 2; int64 getFishNum = 3; } + +message GetMissionReq { +} + +message GetMissionResp { + int64 SignInTime = 1; + int64 LikeTime = 2; + int64 CommentTime = 3; + int64 ContentTime = 4; + repeated int64 SignInFishes = 5; + repeated int64 LikeFishes = 6; + repeated int64 CommentFishes = 7; + repeated int64 ContentFishes = 8; +} \ No newline at end of file diff --git a/meowchat/user/user.proto b/meowchat/user/user.proto index d927432..c19485a 100644 --- a/meowchat/user/user.proto +++ b/meowchat/user/user.proto @@ -121,6 +121,15 @@ message CheckInResp { int64 getFishTimes = 2; } +message GetUserMissionReq { + string userId= 1; +} + +message GetUserMissionResp { + int64 signInTime = 1; + int64 likeTime = 2; +} + service UserService { rpc GetUser(GetUserReq) returns (GetUserResp); rpc GetUserDetail(GetUserDetailReq) returns (GetUserDetailResp); @@ -137,4 +146,5 @@ service UserService { rpc GetUserLikes(GetUserLikesReq) returns (GetUserLikesResp); // 查看喜欢某个东西的用户 rpc GetLikedUsers(GetLikedUsersReq) returns (GetLikedUsersResp); + rpc GetUserMission(GetUserMissionReq) returns (GetUserMissionResp); } diff --git a/platform/comment/comment.proto b/platform/comment/comment.proto index d24f3e4..cf108c9 100644 --- a/platform/comment/comment.proto +++ b/platform/comment/comment.proto @@ -112,6 +112,14 @@ message ListCommentByReplyToAndTypeResp { int64 total = 2; } +message GetCommentMissionReq { + string userId = 1; +} + +message GetCommentMissionResp { + int64 CommentTime = 1; +} + service CommentService { // 创建 rpc createComment(CreateCommentReq) returns(CreateCommentResp); @@ -129,5 +137,5 @@ service CommentService { rpc listCommentByAuthorIdAndType(ListCommentByAuthorIdAndTypeReq) returns(ListCommentByAuthorIdAndTypeResp); // 根据 replyTo & type 查找 rpc listCommentByReplyToAndType(ListCommentByReplyToAndTypeReq) returns(ListCommentByReplyToAndTypeResp); - + rpc GetCommentMission(GetCommentMissionReq) returns(GetCommentMissionResp); } \ No newline at end of file