wfz 3 سال پیش
والد
کامیت
b5707166d6
4فایلهای تغییر یافته به همراه161 افزوده شده و 106 حذف شده
  1. 113 106
      api/user/user.pb.go
  2. 2 0
      api/user/user.proto
  3. 38 0
      api/user/user_grpc.pb.go
  4. 8 0
      errors/activity.go

+ 113 - 106
api/user/user.pb.go

@@ -2622,7 +2622,7 @@ var file_user_proto_rawDesc = []byte{
 	0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2a, 0x0a, 0x10, 0x50, 0x61, 0x79, 0x43, 0x61,
 	0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x72,
 	0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x65, 0x73,
-	0x75, 0x6c, 0x74, 0x32, 0xa3, 0x55, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x0b,
+	0x75, 0x6c, 0x74, 0x32, 0xe5, 0x55, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x0b,
 	0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f,
 	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
 	0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55,
@@ -3304,11 +3304,16 @@ var file_user_proto_rawDesc = []byte{
 	0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55,
 	0x73, 0x65, 0x72, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
 	0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
-	0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69,
-	0x2e, 0x75, 0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75,
-	0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70,
-	0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75,
-	0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0d, 0x53, 0x69, 0x67,
+	0x6e, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69,
+	0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63,
+	0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+	0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x3d, 0x0a, 0x08, 0x61,
+	0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69,
+	0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
+	0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69,
+	0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x33,
 }
 
 var (
@@ -3536,106 +3541,108 @@ var file_user_proto_depIdxs = []int32{
 	10,  // 101: api.user.User.UpdateUserMatchedNumAndReturnUserMsg:input_type -> api.user.UpdateUserMatchedNumRequest
 	5,   // 102: api.user.User.GetRecommendUserDB:input_type -> api.user.GetRecommendUserDBRequest
 	0,   // 103: api.user.User.ReportUserBlack:input_type -> api.user.ReportUserBlackRequest
-	27,  // 104: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
-	37,  // 105: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
-	37,  // 106: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
-	37,  // 107: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
-	71,  // 108: api.user.User.CreateUserPersonRoom:output_type -> api.chat.RoomReply
-	24,  // 109: api.user.User.GetUserBalance:output_type -> api.user.UserBalance
-	72,  // 110: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
-	73,  // 111: api.user.User.UserGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	74,  // 112: api.user.User.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	75,  // 113: api.user.User.WxConf:output_type -> api.common.WxConfResponse
-	76,  // 114: api.user.User.FindTagListBySex:output_type -> api.common.TagListReply
-	77,  // 115: api.user.User.FindOnlineList:output_type -> api.common.RecommendPersonListReply
-	25,  // 116: api.user.User.FindWithinSevenDayRoomList:output_type -> api.user.UserFindChatListReply
-	25,  // 117: api.user.User.FindOverSevenDayRoomList:output_type -> api.user.UserFindChatListReply
-	78,  // 118: api.user.User.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	79,  // 119: api.user.User.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	80,  // 120: api.user.User.GetUserIsLike:output_type -> api.common.IsLike
-	81,  // 121: api.user.User.FindMemeByType:output_type -> api.common.MemeList
-	82,  // 122: api.user.User.FindChatTopic:output_type -> api.common.ChatTopicList
-	83,  // 123: api.user.User.RandomMeme:output_type -> api.common.CommonTextList
-	83,  // 124: api.user.User.RandomSwiftMessage:output_type -> api.common.CommonTextList
-	84,  // 125: api.user.User.FindMemeTitle:output_type -> api.common.MemeTitleList
-	85,  // 126: api.user.User.UserGetChatCard:output_type -> api.common.ChatCardInfo
-	84,  // 127: api.user.User.FindChatTopicTitle:output_type -> api.common.MemeTitleList
-	37,  // 128: api.user.User.UserLike:output_type -> google.protobuf.Empty
-	37,  // 129: api.user.User.UserUnLike:output_type -> google.protobuf.Empty
-	37,  // 130: api.user.User.Report:output_type -> google.protobuf.Empty
-	86,  // 131: api.user.User.FindOverSevenDayAvatar:output_type -> api.common.FindOverSevenDayAvatarReply
-	37,  // 132: api.user.User.UpdateLastScripID:output_type -> google.protobuf.Empty
-	87,  // 133: api.user.User.CreateScrip:output_type -> api.common.ScripID
-	37,  // 134: api.user.User.DeleteScrip:output_type -> google.protobuf.Empty
-	88,  // 135: api.user.User.FindMyScrip:output_type -> api.common.ScripReply
-	88,  // 136: api.user.User.FindOtherScrip:output_type -> api.common.ScripReply
-	88,  // 137: api.user.User.FindRecommendScrip:output_type -> api.common.ScripReply
-	37,  // 138: api.user.User.PersonLookScrip:output_type -> google.protobuf.Empty
-	89,  // 139: api.user.User.PersonClickLookBack:output_type -> api.common.ScripInfo
-	90,  // 140: api.user.User.PersonReplyScrip:output_type -> api.common.ChatRecordInfo
-	37,  // 141: api.user.User.UserDeleteChat:output_type -> google.protobuf.Empty
-	91,  // 142: api.user.User.GetUserAllUnreadNum:output_type -> api.chat.UnreadNumReply
-	92,  // 143: api.user.User.GetUserRoomByPerson:output_type -> api.chat.UserRoomInfo
-	74,  // 144: api.user.User.FindLikeList:output_type -> api.statistics.LookAndLikeListReply
-	74,  // 145: api.user.User.FindLikedList:output_type -> api.statistics.LookAndLikeListReply
-	37,  // 146: api.user.User.UserSetBlackChat:output_type -> google.protobuf.Empty
-	93,  // 147: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	94,  // 148: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	95,  // 149: api.user.User.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
-	96,  // 150: api.user.User.GetUserLookNum:output_type -> api.statistics.LookMessageReply
-	37,  // 151: api.user.User.UserFinishInformation:output_type -> google.protobuf.Empty
-	23,  // 152: api.user.User.UserInformationStatus:output_type -> api.user.InformationStatus
-	37,  // 153: api.user.User.UserGetInformationAward:output_type -> google.protobuf.Empty
-	37,  // 154: api.user.User.UnlockLookRecord:output_type -> google.protobuf.Empty
-	30,  // 155: api.user.User.UserRecharge:output_type -> api.user.PayInfo
-	21,  // 156: api.user.User.FindRechargeList:output_type -> api.user.RechargeList
-	32,  // 157: api.user.User.FindPayList:output_type -> api.user.PayOrderList
-	77,  // 158: api.user.User.FindRecommendPersonList:output_type -> api.common.RecommendPersonListReply
-	19,  // 159: api.user.User.FindMatchingAvatarAndNum:output_type -> api.user.FindMatchingAvatarAndNumReply
-	97,  // 160: api.user.User.GetWindowInfo:output_type -> api.chat.WindowInfo
-	13,  // 161: api.user.User.GetUserFreeNum:output_type -> api.user.UserFreeNum
-	98,  // 162: api.user.User.GetRandomMatching:output_type -> api.chat.GetRandomMatchingReply
-	37,  // 163: api.user.User.UnlockVoice:output_type -> google.protobuf.Empty
-	37,  // 164: api.user.User.UnlockPicture:output_type -> google.protobuf.Empty
-	37,  // 165: api.user.User.UpdateUserIsRegister:output_type -> google.protobuf.Empty
-	71,  // 166: api.user.User.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
-	99,  // 167: api.user.User.SendMessage:output_type -> api.common.SendMessageReply
-	100, // 168: api.user.User.ManagerFindUserList:output_type -> api.common.ManagerFindPersonListReply
-	100, // 169: api.user.User.ManagerFindInformationUserList:output_type -> api.common.ManagerFindPersonListReply
-	101, // 170: api.user.User.ManagerFindIsCheckQualityUserList:output_type -> api.common.ManagerFindPersonListReply2
-	100, // 171: api.user.User.ManagerFindHighQualityUserList:output_type -> api.common.ManagerFindPersonListReply
-	37,  // 172: api.user.User.ManagerMarkHighQualityUser:output_type -> google.protobuf.Empty
-	37,  // 173: api.user.User.ManagerMarkHighQualityUserOne:output_type -> google.protobuf.Empty
-	37,  // 174: api.user.User.ManagerSetUserBlack:output_type -> google.protobuf.Empty
-	37,  // 175: api.user.User.ManagerDeleteHighQualityUser:output_type -> google.protobuf.Empty
-	37,  // 176: api.user.User.ManagerUpdateUserVoice:output_type -> google.protobuf.Empty
-	37,  // 177: api.user.User.ManagerUpdateUserPictures:output_type -> google.protobuf.Empty
-	37,  // 178: api.user.User.ManagerUpdateUserSignature:output_type -> google.protobuf.Empty
-	37,  // 179: api.user.User.ManagerUpdateUserAvatar:output_type -> google.protobuf.Empty
-	37,  // 180: api.user.User.ManagerUpdateUserName:output_type -> google.protobuf.Empty
-	37,  // 181: api.user.User.ManagerUpdateUserWeight:output_type -> google.protobuf.Empty
-	37,  // 182: api.user.User.ManagerUpdateUserIsBlack:output_type -> google.protobuf.Empty
-	37,  // 183: api.user.User.ManagerUpdateUserCredit:output_type -> google.protobuf.Empty
-	102, // 184: api.user.User.GetUserDBMsg:output_type -> api.common.PersonMsg
-	103, // 185: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
-	37,  // 186: api.user.User.UpdateLastScripIDDB:output_type -> google.protobuf.Empty
-	103, // 187: api.user.User.FindRecommendUserDBList:output_type -> api.common.PersonDBReply
-	37,  // 188: api.user.User.UpdateUserLastLoginTime:output_type -> google.protobuf.Empty
-	102, // 189: api.user.User.GetUserDBMsgByAccountID:output_type -> api.common.PersonMsg
-	7,   // 190: api.user.User.FindRecommendHighQualityUserDBList:output_type -> api.user.FindRecommendHighQualityUserReply
-	9,   // 191: api.user.User.GetUserDBMsgFromWebsocket:output_type -> api.user.GetUserDBMsgFromWebsocketReply
-	37,  // 192: api.user.User.SendMsgReduceCredit:output_type -> google.protobuf.Empty
-	37,  // 193: api.user.User.LookBackScripReduceCredit:output_type -> google.protobuf.Empty
-	37,  // 194: api.user.User.CreateScripReduceCredit:output_type -> google.protobuf.Empty
-	37,  // 195: api.user.User.ReplyScripReduceCredit:output_type -> google.protobuf.Empty
-	37,  // 196: api.user.User.MatchingCredit:output_type -> google.protobuf.Empty
-	37,  // 197: api.user.User.SendNewMessageUnreadReminder:output_type -> google.protobuf.Empty
-	37,  // 198: api.user.User.SendNewVisitorTemplateReminder:output_type -> google.protobuf.Empty
-	8,   // 199: api.user.User.UpdateUserMatchedNumAndReturnUserMsg:output_type -> api.user.UpdateUserMatchedNumAndReturnUserMsgReply
-	104, // 200: api.user.User.GetRecommendUserDB:output_type -> api.common.PersonDB
-	37,  // 201: api.user.User.ReportUserBlack:output_type -> google.protobuf.Empty
-	104, // [104:202] is the sub-list for method output_type
-	6,   // [6:104] is the sub-list for method input_type
+	24,  // 104: api.user.User.SignAddCredit:input_type -> api.user.UserBalance
+	27,  // 105: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
+	37,  // 106: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
+	37,  // 107: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
+	37,  // 108: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
+	71,  // 109: api.user.User.CreateUserPersonRoom:output_type -> api.chat.RoomReply
+	24,  // 110: api.user.User.GetUserBalance:output_type -> api.user.UserBalance
+	72,  // 111: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
+	73,  // 112: api.user.User.UserGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	74,  // 113: api.user.User.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	75,  // 114: api.user.User.WxConf:output_type -> api.common.WxConfResponse
+	76,  // 115: api.user.User.FindTagListBySex:output_type -> api.common.TagListReply
+	77,  // 116: api.user.User.FindOnlineList:output_type -> api.common.RecommendPersonListReply
+	25,  // 117: api.user.User.FindWithinSevenDayRoomList:output_type -> api.user.UserFindChatListReply
+	25,  // 118: api.user.User.FindOverSevenDayRoomList:output_type -> api.user.UserFindChatListReply
+	78,  // 119: api.user.User.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	79,  // 120: api.user.User.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	80,  // 121: api.user.User.GetUserIsLike:output_type -> api.common.IsLike
+	81,  // 122: api.user.User.FindMemeByType:output_type -> api.common.MemeList
+	82,  // 123: api.user.User.FindChatTopic:output_type -> api.common.ChatTopicList
+	83,  // 124: api.user.User.RandomMeme:output_type -> api.common.CommonTextList
+	83,  // 125: api.user.User.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	84,  // 126: api.user.User.FindMemeTitle:output_type -> api.common.MemeTitleList
+	85,  // 127: api.user.User.UserGetChatCard:output_type -> api.common.ChatCardInfo
+	84,  // 128: api.user.User.FindChatTopicTitle:output_type -> api.common.MemeTitleList
+	37,  // 129: api.user.User.UserLike:output_type -> google.protobuf.Empty
+	37,  // 130: api.user.User.UserUnLike:output_type -> google.protobuf.Empty
+	37,  // 131: api.user.User.Report:output_type -> google.protobuf.Empty
+	86,  // 132: api.user.User.FindOverSevenDayAvatar:output_type -> api.common.FindOverSevenDayAvatarReply
+	37,  // 133: api.user.User.UpdateLastScripID:output_type -> google.protobuf.Empty
+	87,  // 134: api.user.User.CreateScrip:output_type -> api.common.ScripID
+	37,  // 135: api.user.User.DeleteScrip:output_type -> google.protobuf.Empty
+	88,  // 136: api.user.User.FindMyScrip:output_type -> api.common.ScripReply
+	88,  // 137: api.user.User.FindOtherScrip:output_type -> api.common.ScripReply
+	88,  // 138: api.user.User.FindRecommendScrip:output_type -> api.common.ScripReply
+	37,  // 139: api.user.User.PersonLookScrip:output_type -> google.protobuf.Empty
+	89,  // 140: api.user.User.PersonClickLookBack:output_type -> api.common.ScripInfo
+	90,  // 141: api.user.User.PersonReplyScrip:output_type -> api.common.ChatRecordInfo
+	37,  // 142: api.user.User.UserDeleteChat:output_type -> google.protobuf.Empty
+	91,  // 143: api.user.User.GetUserAllUnreadNum:output_type -> api.chat.UnreadNumReply
+	92,  // 144: api.user.User.GetUserRoomByPerson:output_type -> api.chat.UserRoomInfo
+	74,  // 145: api.user.User.FindLikeList:output_type -> api.statistics.LookAndLikeListReply
+	74,  // 146: api.user.User.FindLikedList:output_type -> api.statistics.LookAndLikeListReply
+	37,  // 147: api.user.User.UserSetBlackChat:output_type -> google.protobuf.Empty
+	93,  // 148: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	94,  // 149: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	95,  // 150: api.user.User.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
+	96,  // 151: api.user.User.GetUserLookNum:output_type -> api.statistics.LookMessageReply
+	37,  // 152: api.user.User.UserFinishInformation:output_type -> google.protobuf.Empty
+	23,  // 153: api.user.User.UserInformationStatus:output_type -> api.user.InformationStatus
+	37,  // 154: api.user.User.UserGetInformationAward:output_type -> google.protobuf.Empty
+	37,  // 155: api.user.User.UnlockLookRecord:output_type -> google.protobuf.Empty
+	30,  // 156: api.user.User.UserRecharge:output_type -> api.user.PayInfo
+	21,  // 157: api.user.User.FindRechargeList:output_type -> api.user.RechargeList
+	32,  // 158: api.user.User.FindPayList:output_type -> api.user.PayOrderList
+	77,  // 159: api.user.User.FindRecommendPersonList:output_type -> api.common.RecommendPersonListReply
+	19,  // 160: api.user.User.FindMatchingAvatarAndNum:output_type -> api.user.FindMatchingAvatarAndNumReply
+	97,  // 161: api.user.User.GetWindowInfo:output_type -> api.chat.WindowInfo
+	13,  // 162: api.user.User.GetUserFreeNum:output_type -> api.user.UserFreeNum
+	98,  // 163: api.user.User.GetRandomMatching:output_type -> api.chat.GetRandomMatchingReply
+	37,  // 164: api.user.User.UnlockVoice:output_type -> google.protobuf.Empty
+	37,  // 165: api.user.User.UnlockPicture:output_type -> google.protobuf.Empty
+	37,  // 166: api.user.User.UpdateUserIsRegister:output_type -> google.protobuf.Empty
+	71,  // 167: api.user.User.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
+	99,  // 168: api.user.User.SendMessage:output_type -> api.common.SendMessageReply
+	100, // 169: api.user.User.ManagerFindUserList:output_type -> api.common.ManagerFindPersonListReply
+	100, // 170: api.user.User.ManagerFindInformationUserList:output_type -> api.common.ManagerFindPersonListReply
+	101, // 171: api.user.User.ManagerFindIsCheckQualityUserList:output_type -> api.common.ManagerFindPersonListReply2
+	100, // 172: api.user.User.ManagerFindHighQualityUserList:output_type -> api.common.ManagerFindPersonListReply
+	37,  // 173: api.user.User.ManagerMarkHighQualityUser:output_type -> google.protobuf.Empty
+	37,  // 174: api.user.User.ManagerMarkHighQualityUserOne:output_type -> google.protobuf.Empty
+	37,  // 175: api.user.User.ManagerSetUserBlack:output_type -> google.protobuf.Empty
+	37,  // 176: api.user.User.ManagerDeleteHighQualityUser:output_type -> google.protobuf.Empty
+	37,  // 177: api.user.User.ManagerUpdateUserVoice:output_type -> google.protobuf.Empty
+	37,  // 178: api.user.User.ManagerUpdateUserPictures:output_type -> google.protobuf.Empty
+	37,  // 179: api.user.User.ManagerUpdateUserSignature:output_type -> google.protobuf.Empty
+	37,  // 180: api.user.User.ManagerUpdateUserAvatar:output_type -> google.protobuf.Empty
+	37,  // 181: api.user.User.ManagerUpdateUserName:output_type -> google.protobuf.Empty
+	37,  // 182: api.user.User.ManagerUpdateUserWeight:output_type -> google.protobuf.Empty
+	37,  // 183: api.user.User.ManagerUpdateUserIsBlack:output_type -> google.protobuf.Empty
+	37,  // 184: api.user.User.ManagerUpdateUserCredit:output_type -> google.protobuf.Empty
+	102, // 185: api.user.User.GetUserDBMsg:output_type -> api.common.PersonMsg
+	103, // 186: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
+	37,  // 187: api.user.User.UpdateLastScripIDDB:output_type -> google.protobuf.Empty
+	103, // 188: api.user.User.FindRecommendUserDBList:output_type -> api.common.PersonDBReply
+	37,  // 189: api.user.User.UpdateUserLastLoginTime:output_type -> google.protobuf.Empty
+	102, // 190: api.user.User.GetUserDBMsgByAccountID:output_type -> api.common.PersonMsg
+	7,   // 191: api.user.User.FindRecommendHighQualityUserDBList:output_type -> api.user.FindRecommendHighQualityUserReply
+	9,   // 192: api.user.User.GetUserDBMsgFromWebsocket:output_type -> api.user.GetUserDBMsgFromWebsocketReply
+	37,  // 193: api.user.User.SendMsgReduceCredit:output_type -> google.protobuf.Empty
+	37,  // 194: api.user.User.LookBackScripReduceCredit:output_type -> google.protobuf.Empty
+	37,  // 195: api.user.User.CreateScripReduceCredit:output_type -> google.protobuf.Empty
+	37,  // 196: api.user.User.ReplyScripReduceCredit:output_type -> google.protobuf.Empty
+	37,  // 197: api.user.User.MatchingCredit:output_type -> google.protobuf.Empty
+	37,  // 198: api.user.User.SendNewMessageUnreadReminder:output_type -> google.protobuf.Empty
+	37,  // 199: api.user.User.SendNewVisitorTemplateReminder:output_type -> google.protobuf.Empty
+	8,   // 200: api.user.User.UpdateUserMatchedNumAndReturnUserMsg:output_type -> api.user.UpdateUserMatchedNumAndReturnUserMsgReply
+	104, // 201: api.user.User.GetRecommendUserDB:output_type -> api.common.PersonDB
+	37,  // 202: api.user.User.ReportUserBlack:output_type -> google.protobuf.Empty
+	37,  // 203: api.user.User.SignAddCredit:output_type -> google.protobuf.Empty
+	105, // [105:204] is the sub-list for method output_type
+	6,   // [6:105] is the sub-list for method input_type
 	6,   // [6:6] is the sub-list for extension type_name
 	6,   // [6:6] is the sub-list for extension extendee
 	0,   // [0:6] is the sub-list for field type_name

+ 2 - 0
api/user/user.proto

@@ -621,6 +621,8 @@ service User {
   rpc GetRecommendUserDB(GetRecommendUserDBRequest) returns(common.PersonDB){}
   // 举报超过3次拉黑用户
   rpc ReportUserBlack (ReportUserBlackRequest) returns (google.protobuf.Empty){};
+  // 用户签到加积分
+  rpc SignAddCredit (UserBalance) returns (google.protobuf.Empty){};
 }
 message ReportUserBlackRequest{
   string personId = 1;

+ 38 - 0
api/user/user_grpc.pb.go

@@ -223,6 +223,8 @@ type UserClient interface {
 	GetRecommendUserDB(ctx context.Context, in *GetRecommendUserDBRequest, opts ...grpc.CallOption) (*common.PersonDB, error)
 	// 举报超过3次拉黑用户
 	ReportUserBlack(ctx context.Context, in *ReportUserBlackRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 用户签到加积分
+	SignAddCredit(ctx context.Context, in *UserBalance, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
 
 type userClient struct {
@@ -1115,6 +1117,15 @@ func (c *userClient) ReportUserBlack(ctx context.Context, in *ReportUserBlackReq
 	return out, nil
 }
 
+func (c *userClient) SignAddCredit(ctx context.Context, in *UserBalance, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.user.User/SignAddCredit", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // UserServer is the server API for User service.
 // All implementations must embed UnimplementedUserServer
 // for forward compatibility
@@ -1320,6 +1331,8 @@ type UserServer interface {
 	GetRecommendUserDB(context.Context, *GetRecommendUserDBRequest) (*common.PersonDB, error)
 	// 举报超过3次拉黑用户
 	ReportUserBlack(context.Context, *ReportUserBlackRequest) (*emptypb.Empty, error)
+	// 用户签到加积分
+	SignAddCredit(context.Context, *UserBalance) (*emptypb.Empty, error)
 	mustEmbedUnimplementedUserServer()
 }
 
@@ -1621,6 +1634,9 @@ func (UnimplementedUserServer) GetRecommendUserDB(context.Context, *GetRecommend
 func (UnimplementedUserServer) ReportUserBlack(context.Context, *ReportUserBlackRequest) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method ReportUserBlack not implemented")
 }
+func (UnimplementedUserServer) SignAddCredit(context.Context, *UserBalance) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method SignAddCredit not implemented")
+}
 func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
 
 // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
@@ -3398,6 +3414,24 @@ func _User_ReportUserBlack_Handler(srv interface{}, ctx context.Context, dec fun
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_SignAddCredit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UserBalance)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).SignAddCredit(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/SignAddCredit",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).SignAddCredit(ctx, req.(*UserBalance))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // User_ServiceDesc is the grpc.ServiceDesc for User service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -3797,6 +3831,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "ReportUserBlack",
 			Handler:    _User_ReportUserBlack_Handler,
 		},
+		{
+			MethodName: "SignAddCredit",
+			Handler:    _User_SignAddCredit_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "user.proto",

+ 8 - 0
errors/activity.go

@@ -0,0 +1,8 @@
+package errors
+
+import "git.ikuban.com/server/kratos-utils/codes"
+
+var (
+	ErrorSignFinish = codes.Error(50001, "今日已完成签到")
+	ErrorSignDouble = codes.Error(50002, "今日已领取过双倍奖励")
+)