wfz 3 years ago
parent
commit
2a46963e80

+ 65 - 56
api/partner/partner.pb.go

@@ -1271,7 +1271,7 @@ var file_partner_proto_rawDesc = []byte{
 	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x57, 0x69, 0x74, 0x68, 0x64,
 	0x72, 0x61, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x65,
 	0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a,
-	0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x32, 0xf7, 0x27, 0x0a, 0x07, 0x50,
+	0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x32, 0xf3, 0x28, 0x0a, 0x07, 0x50,
 	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x60, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72,
 	0x74, 0x6e, 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,
@@ -1586,17 +1586,24 @@ var file_partner_proto_rawDesc = []byte{
 	0x79, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x21, 0x2f, 0x61, 0x70, 0x69, 0x2f,
 	0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77,
 	0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12,
-	0x53, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x53, 0x63, 0x72,
+	0x7c, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x53, 0x63, 0x72,
 	0x69, 0x70, 0x49, 0x44, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
 	0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x53, 0x63, 0x72, 0x69,
 	0x70, 0x49, 0x44, 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, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74,
-	0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 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, 0x70, 0x61, 0x72,
-	0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72,
-	0x6f, 0x74, 0x6f, 0x33,
+	0x74, 0x79, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70, 0x69,
+	0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x2f, 0x6c,
+	0x61, 0x73, 0x74, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x51, 0x0a,
+	0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x4c, 0x61,
+	0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49,
+	0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 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, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x50,
+	0x01, 0x5a, 0x35, 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, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
+	0x3b, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -1724,54 +1731,56 @@ var file_partner_proto_depIdxs = []int32{
 	16, // 46: api.partner.Partner.PartnerWithdrawTemplateList:input_type -> google.protobuf.Empty
 	23, // 47: api.partner.Partner.PartnerWithdrawRecordList:input_type -> api.common.ListPageRequest
 	37, // 48: api.partner.Partner.UpdateLastScripID:input_type -> api.common.UpdateLastScripIDRequest
-	9,  // 49: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
-	11, // 50: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
-	12, // 51: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
-	38, // 52: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
-	10, // 53: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
-	39, // 54: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
-	16, // 55: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
-	16, // 56: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
-	40, // 57: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	16, // 58: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
-	13, // 59: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
-	41, // 60: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
-	42, // 61: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	43, // 62: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	44, // 63: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
-	45, // 64: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
-	46, // 65: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
-	47, // 66: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
-	48, // 67: api.partner.Partner.FindOnlineList:output_type -> api.common.RecommendPersonListReply
-	49, // 68: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	49, // 69: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	49, // 70: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	50, // 71: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	51, // 72: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	16, // 73: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
-	6,  // 74: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
-	52, // 75: api.partner.Partner.GetPartnerIsLike:output_type -> api.common.IsLike
-	53, // 76: api.partner.Partner.FindMemeByType:output_type -> api.common.MemeList
-	54, // 77: api.partner.Partner.FindChatTopic:output_type -> api.common.ChatTopicList
-	55, // 78: api.partner.Partner.RandomMeme:output_type -> api.common.CommonTextList
-	55, // 79: api.partner.Partner.RandomSwiftMessage:output_type -> api.common.CommonTextList
-	56, // 80: api.partner.Partner.FindMemeTitle:output_type -> api.common.MemeTitleList
-	57, // 81: api.partner.Partner.PartnerGetChatCard:output_type -> api.common.PartnerChatCardInfo
-	56, // 82: api.partner.Partner.FindChatTopicTitle:output_type -> api.common.MemeTitleList
-	16, // 83: api.partner.Partner.PartnerLike:output_type -> google.protobuf.Empty
-	16, // 84: api.partner.Partner.PartnerUnLike:output_type -> google.protobuf.Empty
-	16, // 85: api.partner.Partner.Report:output_type -> google.protobuf.Empty
-	16, // 86: api.partner.Partner.PartnerGetAward:output_type -> google.protobuf.Empty
-	16, // 87: api.partner.Partner.PartnerUpdateWorkingStatus:output_type -> google.protobuf.Empty
-	44, // 88: api.partner.Partner.FindRecommendPartnerDBList:output_type -> api.common.PersonDBReply
-	58, // 89: api.partner.Partner.FindOverSevenDayAvatar:output_type -> api.common.FindOverSevenDayAvatarReply
-	59, // 90: api.partner.Partner.FindNotReplyNum:output_type -> api.chat.FindNotReplyNumReply
-	16, // 91: api.partner.Partner.PartnerApplyWithdraw:output_type -> google.protobuf.Empty
-	2,  // 92: api.partner.Partner.PartnerWithdrawTemplateList:output_type -> api.partner.PartnerWithdrawTemplateListReply
-	0,  // 93: api.partner.Partner.PartnerWithdrawRecordList:output_type -> api.partner.PartnerWithdrawRecordListReply
-	16, // 94: api.partner.Partner.UpdateLastScripID:output_type -> google.protobuf.Empty
-	49, // [49:95] is the sub-list for method output_type
-	3,  // [3:49] is the sub-list for method input_type
+	18, // 49: api.partner.Partner.UpdatePartnerLastLoginTime:input_type -> api.common.PersonIDParam
+	9,  // 50: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
+	11, // 51: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
+	12, // 52: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
+	38, // 53: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
+	10, // 54: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
+	39, // 55: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
+	16, // 56: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
+	16, // 57: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
+	40, // 58: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	16, // 59: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
+	13, // 60: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
+	41, // 61: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
+	42, // 62: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	43, // 63: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	44, // 64: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
+	45, // 65: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
+	46, // 66: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
+	47, // 67: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
+	48, // 68: api.partner.Partner.FindOnlineList:output_type -> api.common.RecommendPersonListReply
+	49, // 69: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	49, // 70: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	49, // 71: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	50, // 72: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	51, // 73: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	16, // 74: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
+	6,  // 75: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
+	52, // 76: api.partner.Partner.GetPartnerIsLike:output_type -> api.common.IsLike
+	53, // 77: api.partner.Partner.FindMemeByType:output_type -> api.common.MemeList
+	54, // 78: api.partner.Partner.FindChatTopic:output_type -> api.common.ChatTopicList
+	55, // 79: api.partner.Partner.RandomMeme:output_type -> api.common.CommonTextList
+	55, // 80: api.partner.Partner.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	56, // 81: api.partner.Partner.FindMemeTitle:output_type -> api.common.MemeTitleList
+	57, // 82: api.partner.Partner.PartnerGetChatCard:output_type -> api.common.PartnerChatCardInfo
+	56, // 83: api.partner.Partner.FindChatTopicTitle:output_type -> api.common.MemeTitleList
+	16, // 84: api.partner.Partner.PartnerLike:output_type -> google.protobuf.Empty
+	16, // 85: api.partner.Partner.PartnerUnLike:output_type -> google.protobuf.Empty
+	16, // 86: api.partner.Partner.Report:output_type -> google.protobuf.Empty
+	16, // 87: api.partner.Partner.PartnerGetAward:output_type -> google.protobuf.Empty
+	16, // 88: api.partner.Partner.PartnerUpdateWorkingStatus:output_type -> google.protobuf.Empty
+	44, // 89: api.partner.Partner.FindRecommendPartnerDBList:output_type -> api.common.PersonDBReply
+	58, // 90: api.partner.Partner.FindOverSevenDayAvatar:output_type -> api.common.FindOverSevenDayAvatarReply
+	59, // 91: api.partner.Partner.FindNotReplyNum:output_type -> api.chat.FindNotReplyNumReply
+	16, // 92: api.partner.Partner.PartnerApplyWithdraw:output_type -> google.protobuf.Empty
+	2,  // 93: api.partner.Partner.PartnerWithdrawTemplateList:output_type -> api.partner.PartnerWithdrawTemplateListReply
+	0,  // 94: api.partner.Partner.PartnerWithdrawRecordList:output_type -> api.partner.PartnerWithdrawRecordListReply
+	16, // 95: api.partner.Partner.UpdateLastScripID:output_type -> google.protobuf.Empty
+	16, // 96: api.partner.Partner.UpdatePartnerLastLoginTime:output_type -> google.protobuf.Empty
+	50, // [50:97] is the sub-list for method output_type
+	3,  // [3:50] is the sub-list for method input_type
 	3,  // [3:3] is the sub-list for extension type_name
 	3,  // [3:3] is the sub-list for extension extendee
 	0,  // [0:3] is the sub-list for field type_name

+ 8 - 1
api/partner/partner.proto

@@ -299,7 +299,14 @@ service Partner {
     };
   };
   // 更新上次访问的小纸条
-  rpc UpdateLastScripID (common.UpdateLastScripIDRequest) returns (google.protobuf.Empty){};
+  rpc UpdateLastScripID (common.UpdateLastScripIDRequest) returns (google.protobuf.Empty){
+    option (google.api.http) = {
+      post: "/api/partner/scrip/last/update",
+      body:"*"
+    };
+  };
+  // 更新上次登录时间
+  rpc UpdatePartnerLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};
 }
 
 message PartnerWithdrawRecordListReply{

+ 38 - 0
api/partner/partner_grpc.pb.go

@@ -118,6 +118,8 @@ type PartnerClient interface {
 	PartnerWithdrawRecordList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*PartnerWithdrawRecordListReply, error)
 	// 更新上次访问的小纸条
 	UpdateLastScripID(ctx context.Context, in *common.UpdateLastScripIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 更新上次登录时间
+	UpdatePartnerLastLoginTime(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
 
 type partnerClient struct {
@@ -542,6 +544,15 @@ func (c *partnerClient) UpdateLastScripID(ctx context.Context, in *common.Update
 	return out, nil
 }
 
+func (c *partnerClient) UpdatePartnerLastLoginTime(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/UpdatePartnerLastLoginTime", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // PartnerServer is the server API for Partner service.
 // All implementations must embed UnimplementedPartnerServer
 // for forward compatibility
@@ -642,6 +653,8 @@ type PartnerServer interface {
 	PartnerWithdrawRecordList(context.Context, *common.ListPageRequest) (*PartnerWithdrawRecordListReply, error)
 	// 更新上次访问的小纸条
 	UpdateLastScripID(context.Context, *common.UpdateLastScripIDRequest) (*emptypb.Empty, error)
+	// 更新上次登录时间
+	UpdatePartnerLastLoginTime(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -787,6 +800,9 @@ func (UnimplementedPartnerServer) PartnerWithdrawRecordList(context.Context, *co
 func (UnimplementedPartnerServer) UpdateLastScripID(context.Context, *common.UpdateLastScripIDRequest) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method UpdateLastScripID not implemented")
 }
+func (UnimplementedPartnerServer) UpdatePartnerLastLoginTime(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UpdatePartnerLastLoginTime not implemented")
+}
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
 
 // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
@@ -1628,6 +1644,24 @@ func _Partner_UpdateLastScripID_Handler(srv interface{}, ctx context.Context, de
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Partner_UpdatePartnerLastLoginTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.PersonIDParam)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).UpdatePartnerLastLoginTime(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/UpdatePartnerLastLoginTime",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).UpdatePartnerLastLoginTime(ctx, req.(*common.PersonIDParam))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Partner_ServiceDesc is the grpc.ServiceDesc for Partner service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -1819,6 +1853,10 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "UpdateLastScripID",
 			Handler:    _Partner_UpdateLastScripID_Handler,
 		},
+		{
+			MethodName: "UpdatePartnerLastLoginTime",
+			Handler:    _Partner_UpdatePartnerLastLoginTime_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "partner.proto",

+ 43 - 0
api/partner/partner_http.pb.go

@@ -66,6 +66,7 @@ type PartnerHTTPServer interface {
 	RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
 	Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error)
 	SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
+	UpdateLastScripID(context.Context, *common.UpdateLastScripIDRequest) (*emptypb.Empty, error)
 	UpdatePartnerInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
 	WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
 }
@@ -110,6 +111,7 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r.POST("/api/partner/withdraw", _Partner_PartnerApplyWithdraw0_HTTP_Handler(srv))
 	r.POST("/api/partner/withdraw/template/list", _Partner_PartnerWithdrawTemplateList0_HTTP_Handler(srv))
 	r.POST("/api/partner/withdraw/record/list", _Partner_PartnerWithdrawRecordList0_HTTP_Handler(srv))
+	r.POST("/api/partner/scrip/last/update", _Partner_UpdateLastScripID0_HTTP_Handler(srv))
 }
 
 func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
@@ -1138,6 +1140,33 @@ func _Partner_PartnerWithdrawRecordList0_HTTP_Handler(srv PartnerHTTPServer) fun
 	}
 }
 
+func _Partner_UpdateLastScripID0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.UpdateLastScripIDRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/UpdateLastScripID")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.UpdateLastScripID(ctx, req.(*common.UpdateLastScripIDRequest))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
 type PartnerHTTPClient interface {
 	CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	CreateUserPartnerRoom(ctx context.Context, req *common.CreateChatRoomParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
@@ -1175,6 +1204,7 @@ type PartnerHTTPClient interface {
 	RandomSwiftMessage(ctx context.Context, req *common.RandomNumAndSex, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
 	Report(ctx context.Context, req *common.ReportChatRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	SendPhoneCode(ctx context.Context, req *common.SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
+	UpdateLastScripID(ctx context.Context, req *common.UpdateLastScripIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UpdatePartnerInformation(ctx context.Context, req *common.UpdateInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	WxConf(ctx context.Context, req *common.WxConfReq, opts ...http.CallOption) (rsp *common.WxConfResponse, err error)
 }
@@ -1655,6 +1685,19 @@ func (c *PartnerHTTPClientImpl) SendPhoneCode(ctx context.Context, in *common.Se
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) UpdateLastScripID(ctx context.Context, in *common.UpdateLastScripIDRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
+	var out emptypb.Empty
+	pattern := "/api/partner/scrip/last/update"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/UpdateLastScripID"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *PartnerHTTPClientImpl) UpdatePartnerInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
 	var out emptypb.Empty
 	pattern := "/api/partner/update/information"

+ 78 - 71
api/user/user.pb.go

@@ -1745,7 +1745,7 @@ var file_user_proto_rawDesc = []byte{
 	0x09, 0x52, 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, 0x91, 0x37, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x7e,
+	0x65, 0x73, 0x75, 0x6c, 0x74, 0x32, 0xe1, 0x37, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x7e,
 	0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
 	0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f,
 	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72,
@@ -2186,7 +2186,12 @@ var file_user_proto_rawDesc = []byte{
 	0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x52, 0x65,
 	0x70, 0x6c, 0x79, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x19, 0x2f, 0x61, 0x70,
 	0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x2f, 0x6d, 0x61,
-	0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69,
+	0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x4e, 0x0a, 0x17, 0x55, 0x70, 0x64,
+	0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e,
+	0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
+	0x6e, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 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,
@@ -2358,75 +2363,77 @@ var file_user_proto_depIdxs = []int32{
 	26, // 69: api.user.User.GetWindowInfo:input_type -> google.protobuf.Empty
 	26, // 70: api.user.User.GetUserFreeNum:input_type -> google.protobuf.Empty
 	36, // 71: api.user.User.GetRandomMatching:input_type -> api.common.SexReq
-	26, // 72: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
-	15, // 73: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
-	49, // 74: api.user.User.GetUserDBMsg:output_type -> api.common.PersonMsg
-	26, // 75: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
-	26, // 76: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
-	50, // 77: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	51, // 78: api.user.User.CreateUserPersonRoom:output_type -> api.chat.RoomReply
-	52, // 79: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	53, // 80: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
-	54, // 81: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
-	55, // 82: api.user.User.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	55, // 83: api.user.User.FindLikeList:output_type -> api.statistics.LookAndLikeListReply
-	55, // 84: api.user.User.FindLikedList:output_type -> api.statistics.LookAndLikeListReply
-	56, // 85: api.user.User.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
-	57, // 86: api.user.User.WxConf:output_type -> api.common.WxConfResponse
-	58, // 87: api.user.User.FindTagListBySex:output_type -> api.common.TagListReply
-	59, // 88: api.user.User.FindOnlineList:output_type -> api.common.RecommendPersonListReply
-	13, // 89: api.user.User.FindWithinSevenDayRoomList:output_type -> api.user.UserFindChatListReply
-	13, // 90: api.user.User.FindOverSevenDayRoomList:output_type -> api.user.UserFindChatListReply
-	60, // 91: api.user.User.UserGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	12, // 92: api.user.User.GetUserBalance:output_type -> api.user.UserBalance
-	61, // 93: api.user.User.GetUserLookNum:output_type -> api.statistics.LookMessageReply
-	62, // 94: api.user.User.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	63, // 95: api.user.User.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	64, // 96: api.user.User.GetUserIsLike:output_type -> api.common.IsLike
-	26, // 97: api.user.User.UserFinishInformation:output_type -> google.protobuf.Empty
-	11, // 98: api.user.User.UserInformationStatus:output_type -> api.user.InformationStatus
-	26, // 99: api.user.User.UserGetInformationAward:output_type -> google.protobuf.Empty
-	65, // 100: api.user.User.UserGetChatCard:output_type -> api.common.ChatCardInfo
-	26, // 101: api.user.User.UserLike:output_type -> google.protobuf.Empty
-	26, // 102: api.user.User.UserUnLike:output_type -> google.protobuf.Empty
-	26, // 103: api.user.User.UnlockLookRecord:output_type -> google.protobuf.Empty
-	26, // 104: api.user.User.SendMsgReduceCredit:output_type -> google.protobuf.Empty
-	26, // 105: api.user.User.LookBackScripReduceCredit:output_type -> google.protobuf.Empty
-	26, // 106: api.user.User.CreateScripReduceCredit:output_type -> google.protobuf.Empty
-	26, // 107: api.user.User.ReplyScripReduceCredit:output_type -> google.protobuf.Empty
-	26, // 108: api.user.User.UnlockVoiceCredit:output_type -> google.protobuf.Empty
-	26, // 109: api.user.User.UnlockPictureCredit:output_type -> google.protobuf.Empty
-	26, // 110: api.user.User.MatchingCredit:output_type -> google.protobuf.Empty
-	66, // 111: api.user.User.FindMemeByType:output_type -> api.common.MemeList
-	67, // 112: api.user.User.FindChatTopic:output_type -> api.common.ChatTopicList
-	68, // 113: api.user.User.RandomMeme:output_type -> api.common.CommonTextList
-	68, // 114: api.user.User.RandomSwiftMessage:output_type -> api.common.CommonTextList
-	69, // 115: api.user.User.FindMemeTitle:output_type -> api.common.MemeTitleList
-	26, // 116: api.user.User.UserSetBlackChat:output_type -> google.protobuf.Empty
-	26, // 117: api.user.User.UserDeleteChat:output_type -> google.protobuf.Empty
-	69, // 118: api.user.User.FindChatTopicTitle:output_type -> api.common.MemeTitleList
-	18, // 119: api.user.User.UserRecharge:output_type -> api.user.PayInfo
-	9,  // 120: api.user.User.FindRechargeList:output_type -> api.user.RechargeList
-	20, // 121: api.user.User.FindPayList:output_type -> api.user.PayOrderList
-	26, // 122: api.user.User.Report:output_type -> google.protobuf.Empty
-	54, // 123: api.user.User.FindRecommendUserDBList:output_type -> api.common.PersonDBReply
-	59, // 124: api.user.User.FindRecommendPersonList:output_type -> api.common.RecommendPersonListReply
-	70, // 125: api.user.User.FindOverSevenDayAvatar:output_type -> api.common.FindOverSevenDayAvatarReply
-	6,  // 126: api.user.User.FindMatchingAvatarAndNum:output_type -> api.user.FindMatchingAvatarAndNumReply
-	71, // 127: api.user.User.CreateScrip:output_type -> api.common.ScripID
-	26, // 128: api.user.User.DeleteScrip:output_type -> google.protobuf.Empty
-	72, // 129: api.user.User.FindMyScrip:output_type -> api.common.ScripReply
-	72, // 130: api.user.User.FindOtherScrip:output_type -> api.common.ScripReply
-	72, // 131: api.user.User.FindRecommendScrip:output_type -> api.common.ScripReply
-	26, // 132: api.user.User.PersonLookScrip:output_type -> google.protobuf.Empty
-	73, // 133: api.user.User.PersonClickLookBack:output_type -> api.common.ScripInfo
-	74, // 134: api.user.User.PersonReplyScrip:output_type -> api.common.ChatRecordInfo
-	26, // 135: api.user.User.UpdateLastScripID:output_type -> google.protobuf.Empty
-	75, // 136: api.user.User.GetWindowInfo:output_type -> api.chat.WindowInfo
-	0,  // 137: api.user.User.GetUserFreeNum:output_type -> api.user.UserFreeNum
-	76, // 138: api.user.User.GetRandomMatching:output_type -> api.chat.GetRandomMatchingReply
-	72, // [72:139] is the sub-list for method output_type
-	5,  // [5:72] is the sub-list for method input_type
+	27, // 72: api.user.User.UpdateUserLastLoginTime:input_type -> api.common.PersonIDParam
+	26, // 73: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
+	15, // 74: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
+	49, // 75: api.user.User.GetUserDBMsg:output_type -> api.common.PersonMsg
+	26, // 76: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
+	26, // 77: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
+	50, // 78: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	51, // 79: api.user.User.CreateUserPersonRoom:output_type -> api.chat.RoomReply
+	52, // 80: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	53, // 81: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
+	54, // 82: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
+	55, // 83: api.user.User.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	55, // 84: api.user.User.FindLikeList:output_type -> api.statistics.LookAndLikeListReply
+	55, // 85: api.user.User.FindLikedList:output_type -> api.statistics.LookAndLikeListReply
+	56, // 86: api.user.User.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
+	57, // 87: api.user.User.WxConf:output_type -> api.common.WxConfResponse
+	58, // 88: api.user.User.FindTagListBySex:output_type -> api.common.TagListReply
+	59, // 89: api.user.User.FindOnlineList:output_type -> api.common.RecommendPersonListReply
+	13, // 90: api.user.User.FindWithinSevenDayRoomList:output_type -> api.user.UserFindChatListReply
+	13, // 91: api.user.User.FindOverSevenDayRoomList:output_type -> api.user.UserFindChatListReply
+	60, // 92: api.user.User.UserGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	12, // 93: api.user.User.GetUserBalance:output_type -> api.user.UserBalance
+	61, // 94: api.user.User.GetUserLookNum:output_type -> api.statistics.LookMessageReply
+	62, // 95: api.user.User.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	63, // 96: api.user.User.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	64, // 97: api.user.User.GetUserIsLike:output_type -> api.common.IsLike
+	26, // 98: api.user.User.UserFinishInformation:output_type -> google.protobuf.Empty
+	11, // 99: api.user.User.UserInformationStatus:output_type -> api.user.InformationStatus
+	26, // 100: api.user.User.UserGetInformationAward:output_type -> google.protobuf.Empty
+	65, // 101: api.user.User.UserGetChatCard:output_type -> api.common.ChatCardInfo
+	26, // 102: api.user.User.UserLike:output_type -> google.protobuf.Empty
+	26, // 103: api.user.User.UserUnLike:output_type -> google.protobuf.Empty
+	26, // 104: api.user.User.UnlockLookRecord:output_type -> google.protobuf.Empty
+	26, // 105: api.user.User.SendMsgReduceCredit:output_type -> google.protobuf.Empty
+	26, // 106: api.user.User.LookBackScripReduceCredit:output_type -> google.protobuf.Empty
+	26, // 107: api.user.User.CreateScripReduceCredit:output_type -> google.protobuf.Empty
+	26, // 108: api.user.User.ReplyScripReduceCredit:output_type -> google.protobuf.Empty
+	26, // 109: api.user.User.UnlockVoiceCredit:output_type -> google.protobuf.Empty
+	26, // 110: api.user.User.UnlockPictureCredit:output_type -> google.protobuf.Empty
+	26, // 111: api.user.User.MatchingCredit:output_type -> google.protobuf.Empty
+	66, // 112: api.user.User.FindMemeByType:output_type -> api.common.MemeList
+	67, // 113: api.user.User.FindChatTopic:output_type -> api.common.ChatTopicList
+	68, // 114: api.user.User.RandomMeme:output_type -> api.common.CommonTextList
+	68, // 115: api.user.User.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	69, // 116: api.user.User.FindMemeTitle:output_type -> api.common.MemeTitleList
+	26, // 117: api.user.User.UserSetBlackChat:output_type -> google.protobuf.Empty
+	26, // 118: api.user.User.UserDeleteChat:output_type -> google.protobuf.Empty
+	69, // 119: api.user.User.FindChatTopicTitle:output_type -> api.common.MemeTitleList
+	18, // 120: api.user.User.UserRecharge:output_type -> api.user.PayInfo
+	9,  // 121: api.user.User.FindRechargeList:output_type -> api.user.RechargeList
+	20, // 122: api.user.User.FindPayList:output_type -> api.user.PayOrderList
+	26, // 123: api.user.User.Report:output_type -> google.protobuf.Empty
+	54, // 124: api.user.User.FindRecommendUserDBList:output_type -> api.common.PersonDBReply
+	59, // 125: api.user.User.FindRecommendPersonList:output_type -> api.common.RecommendPersonListReply
+	70, // 126: api.user.User.FindOverSevenDayAvatar:output_type -> api.common.FindOverSevenDayAvatarReply
+	6,  // 127: api.user.User.FindMatchingAvatarAndNum:output_type -> api.user.FindMatchingAvatarAndNumReply
+	71, // 128: api.user.User.CreateScrip:output_type -> api.common.ScripID
+	26, // 129: api.user.User.DeleteScrip:output_type -> google.protobuf.Empty
+	72, // 130: api.user.User.FindMyScrip:output_type -> api.common.ScripReply
+	72, // 131: api.user.User.FindOtherScrip:output_type -> api.common.ScripReply
+	72, // 132: api.user.User.FindRecommendScrip:output_type -> api.common.ScripReply
+	26, // 133: api.user.User.PersonLookScrip:output_type -> google.protobuf.Empty
+	73, // 134: api.user.User.PersonClickLookBack:output_type -> api.common.ScripInfo
+	74, // 135: api.user.User.PersonReplyScrip:output_type -> api.common.ChatRecordInfo
+	26, // 136: api.user.User.UpdateLastScripID:output_type -> google.protobuf.Empty
+	75, // 137: api.user.User.GetWindowInfo:output_type -> api.chat.WindowInfo
+	0,  // 138: api.user.User.GetUserFreeNum:output_type -> api.user.UserFreeNum
+	76, // 139: api.user.User.GetRandomMatching:output_type -> api.chat.GetRandomMatchingReply
+	26, // 140: api.user.User.UpdateUserLastLoginTime:output_type -> google.protobuf.Empty
+	73, // [73:141] is the sub-list for method output_type
+	5,  // [5:73] is the sub-list for method input_type
 	5,  // [5:5] is the sub-list for extension type_name
 	5,  // [5:5] is the sub-list for extension extendee
 	0,  // [0:5] is the sub-list for field type_name

+ 2 - 0
api/user/user.proto

@@ -435,6 +435,8 @@ service User {
       body:"*"
     };
   };
+  // 更新上次登录时间
+  rpc UpdateUserLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};
 }
 
 message UserFreeNum{

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

@@ -156,6 +156,8 @@ type UserClient interface {
 	GetUserFreeNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserFreeNum, error)
 	// 随机速配
 	GetRandomMatching(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*chat.GetRandomMatchingReply, error)
+	// 更新上次登录时间
+	UpdateUserLastLoginTime(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
 
 type userClient struct {
@@ -769,6 +771,15 @@ func (c *userClient) GetRandomMatching(ctx context.Context, in *common.SexReq, o
 	return out, nil
 }
 
+func (c *userClient) UpdateUserLastLoginTime(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserLastLoginTime", 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
@@ -907,6 +918,8 @@ type UserServer interface {
 	GetUserFreeNum(context.Context, *emptypb.Empty) (*UserFreeNum, error)
 	// 随机速配
 	GetRandomMatching(context.Context, *common.SexReq) (*chat.GetRandomMatchingReply, error)
+	// 更新上次登录时间
+	UpdateUserLastLoginTime(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
 	mustEmbedUnimplementedUserServer()
 }
 
@@ -1115,6 +1128,9 @@ func (UnimplementedUserServer) GetUserFreeNum(context.Context, *emptypb.Empty) (
 func (UnimplementedUserServer) GetRandomMatching(context.Context, *common.SexReq) (*chat.GetRandomMatchingReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetRandomMatching not implemented")
 }
+func (UnimplementedUserServer) UpdateUserLastLoginTime(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UpdateUserLastLoginTime not implemented")
+}
 func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
 
 // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
@@ -2334,6 +2350,24 @@ func _User_GetRandomMatching_Handler(srv interface{}, ctx context.Context, dec f
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_UpdateUserLastLoginTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.PersonIDParam)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).UpdateUserLastLoginTime(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/UpdateUserLastLoginTime",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).UpdateUserLastLoginTime(ctx, req.(*common.PersonIDParam))
+	}
+	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)
@@ -2609,6 +2643,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "GetRandomMatching",
 			Handler:    _User_GetRandomMatching_Handler,
 		},
+		{
+			MethodName: "UpdateUserLastLoginTime",
+			Handler:    _User_UpdateUserLastLoginTime_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "user.proto",

+ 5 - 0
js/api/partner/partner_http_pb.ts

@@ -203,6 +203,11 @@ const PartnerService = {
 	const res = await request.post<{ data: PartnerWithdrawRecordListReply, code: string, message: string }>('/api/partner/withdraw/record/list', req);
     return res.data.data;
   },
+  /**  更新上次访问的小纸条 */
+  UpdateLastScripID: async (req?: UpdateLastScripIDRequest) => {
+	const res = await request.post('/api/partner/scrip/last/update', req);
+    return res.data.data;
+  },
 
 };