Browse Source

ReduceUserUnread

wfz 3 years ago
parent
commit
1fad569a88
4 changed files with 179 additions and 50 deletions
  1. 130 50
      api/wx/wx.pb.go
  2. 7 0
      api/wx/wx.proto
  3. 38 0
      api/wx/wx_grpc.pb.go
  4. 4 0
      js/api/wx/wx_pb.ts

+ 130 - 50
api/wx/wx.pb.go

@@ -22,6 +22,61 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
+type ReduceUserUnreadRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	AccountId int64  `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId"`
+	PersonId  string `protobuf:"bytes,2,opt,name=personId,proto3" json:"personId"`
+}
+
+func (x *ReduceUserUnreadRequest) Reset() {
+	*x = ReduceUserUnreadRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_wx_proto_msgTypes[0]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *ReduceUserUnreadRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ReduceUserUnreadRequest) ProtoMessage() {}
+
+func (x *ReduceUserUnreadRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_wx_proto_msgTypes[0]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use ReduceUserUnreadRequest.ProtoReflect.Descriptor instead.
+func (*ReduceUserUnreadRequest) Descriptor() ([]byte, []int) {
+	return file_wx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *ReduceUserUnreadRequest) GetAccountId() int64 {
+	if x != nil {
+		return x.AccountId
+	}
+	return 0
+}
+
+func (x *ReduceUserUnreadRequest) GetPersonId() string {
+	if x != nil {
+		return x.PersonId
+	}
+	return ""
+}
+
 type SendNewMessageUnreadReminderRequest struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -34,7 +89,7 @@ type SendNewMessageUnreadReminderRequest struct {
 func (x *SendNewMessageUnreadReminderRequest) Reset() {
 	*x = SendNewMessageUnreadReminderRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_wx_proto_msgTypes[0]
+		mi := &file_wx_proto_msgTypes[1]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -47,7 +102,7 @@ func (x *SendNewMessageUnreadReminderRequest) String() string {
 func (*SendNewMessageUnreadReminderRequest) ProtoMessage() {}
 
 func (x *SendNewMessageUnreadReminderRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_wx_proto_msgTypes[0]
+	mi := &file_wx_proto_msgTypes[1]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -60,7 +115,7 @@ func (x *SendNewMessageUnreadReminderRequest) ProtoReflect() protoreflect.Messag
 
 // Deprecated: Use SendNewMessageUnreadReminderRequest.ProtoReflect.Descriptor instead.
 func (*SendNewMessageUnreadReminderRequest) Descriptor() ([]byte, []int) {
-	return file_wx_proto_rawDescGZIP(), []int{0}
+	return file_wx_proto_rawDescGZIP(), []int{1}
 }
 
 func (x *SendNewMessageUnreadReminderRequest) GetPersonId() string {
@@ -84,39 +139,49 @@ var file_wx_proto_rawDesc = []byte{
 	0x77, 0x78, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
 	0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
 	0x17, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
-	0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x23, 0x53, 0x65, 0x6e, 0x64,
-	0x4e, 0x65, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
-	0x52, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
-	0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73,
-	0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x32,
-	0xd2, 0x02, 0x0a, 0x02, 0x57, 0x78, 0x12, 0x42, 0x0a, 0x0e, 0x43, 0x72, 0x6f, 0x6e, 0x53, 0x69,
-	0x67, 0x6e, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+	0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a, 0x17, 0x52, 0x65, 0x64, 0x75,
+	0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75,
+	0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
+	0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49,
+	0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x65, 0x0a,
+	0x23, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x65, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x55,
+	0x6e, 0x72, 0x65, 0x61, 0x64, 0x52, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71,
+	0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64,
+	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64,
+	0x12, 0x22, 0x0a, 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64,
+	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x73,
+	0x6f, 0x6e, 0x49, 0x64, 0x32, 0xa1, 0x03, 0x0a, 0x02, 0x57, 0x78, 0x12, 0x42, 0x0a, 0x0e, 0x43,
+	0x72, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x72, 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, 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, 0x12,
+	0x4a, 0x0a, 0x16, 0x43, 0x72, 0x6f, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x55, 0x6e, 0x72, 0x65, 0x61,
+	0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 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, 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, 0x12, 0x65, 0x0a, 0x1c, 0x53,
+	0x65, 0x6e, 0x64, 0x4e, 0x65, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x55, 0x6e, 0x72,
+	0x65, 0x61, 0x64, 0x52, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x77, 0x78, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x65, 0x77, 0x4d, 0x65, 0x73, 0x73,
+	0x61, 0x67, 0x65, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x52, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x65,
+	0x72, 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,
-	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, 0x12, 0x4a, 0x0a, 0x16, 0x43, 0x72,
-	0x6f, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6d, 0x70,
-	0x6c, 0x61, 0x74, 0x65, 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, 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, 0x12, 0x65, 0x0a, 0x1c, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x65,
-	0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x52, 0x65,
-	0x6d, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x78, 0x2e,
-	0x53, 0x65, 0x6e, 0x64, 0x4e, 0x65, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x55, 0x6e,
-	0x72, 0x65, 0x61, 0x64, 0x52, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x65, 0x72, 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, 0x12, 0x55, 0x0a,
-	0x1e, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x65, 0x77, 0x56, 0x69, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x54,
-	0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x65, 0x72, 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, 0x37, 0x0a, 0x06, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x78, 0x50, 0x01,
-	0x5a, 0x2b, 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, 0x77, 0x78, 0x3b, 0x77, 0x78, 0x62, 0x06, 0x70,
-	0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x22, 0x00, 0x12, 0x55, 0x0a, 0x1e, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x65, 0x77, 0x56, 0x69, 0x73,
+	0x69, 0x74, 0x6f, 0x72, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x69,
+	0x6e, 0x64, 0x65, 0x72, 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, 0x12, 0x4d, 0x0a, 0x10, 0x52, 0x65, 0x64,
+	0x75, 0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x1f, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x77, 0x78, 0x2e, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x55, 0x73, 0x65,
+	0x72, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 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, 0x37, 0x0a, 0x06, 0x61, 0x70, 0x69, 0x2e,
+	0x77, 0x78, 0x50, 0x01, 0x5a, 0x2b, 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, 0x77, 0x78, 0x3b, 0x77,
+	0x78, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -131,23 +196,26 @@ func file_wx_proto_rawDescGZIP() []byte {
 	return file_wx_proto_rawDescData
 }
 
-var file_wx_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_wx_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
 var file_wx_proto_goTypes = []interface{}{
-	(*SendNewMessageUnreadReminderRequest)(nil), // 0: api.wx.SendNewMessageUnreadReminderRequest
-	(*emptypb.Empty)(nil),                       // 1: google.protobuf.Empty
-	(*common.PersonIDParam)(nil),                // 2: api.common.PersonIDParam
+	(*ReduceUserUnreadRequest)(nil),             // 0: api.wx.ReduceUserUnreadRequest
+	(*SendNewMessageUnreadReminderRequest)(nil), // 1: api.wx.SendNewMessageUnreadReminderRequest
+	(*emptypb.Empty)(nil),                       // 2: google.protobuf.Empty
+	(*common.PersonIDParam)(nil),                // 3: api.common.PersonIDParam
 }
 var file_wx_proto_depIdxs = []int32{
-	1, // 0: api.wx.Wx.CronSignInUser:input_type -> google.protobuf.Empty
-	1, // 1: api.wx.Wx.CronSendUnreadTemplate:input_type -> google.protobuf.Empty
-	0, // 2: api.wx.Wx.SendNewMessageUnreadReminder:input_type -> api.wx.SendNewMessageUnreadReminderRequest
-	2, // 3: api.wx.Wx.SendNewVisitorTemplateReminder:input_type -> api.common.PersonIDParam
-	1, // 4: api.wx.Wx.CronSignInUser:output_type -> google.protobuf.Empty
-	1, // 5: api.wx.Wx.CronSendUnreadTemplate:output_type -> google.protobuf.Empty
-	1, // 6: api.wx.Wx.SendNewMessageUnreadReminder:output_type -> google.protobuf.Empty
-	1, // 7: api.wx.Wx.SendNewVisitorTemplateReminder:output_type -> google.protobuf.Empty
-	4, // [4:8] is the sub-list for method output_type
-	0, // [0:4] is the sub-list for method input_type
+	2, // 0: api.wx.Wx.CronSignInUser:input_type -> google.protobuf.Empty
+	2, // 1: api.wx.Wx.CronSendUnreadTemplate:input_type -> google.protobuf.Empty
+	1, // 2: api.wx.Wx.SendNewMessageUnreadReminder:input_type -> api.wx.SendNewMessageUnreadReminderRequest
+	3, // 3: api.wx.Wx.SendNewVisitorTemplateReminder:input_type -> api.common.PersonIDParam
+	0, // 4: api.wx.Wx.ReduceUserUnread:input_type -> api.wx.ReduceUserUnreadRequest
+	2, // 5: api.wx.Wx.CronSignInUser:output_type -> google.protobuf.Empty
+	2, // 6: api.wx.Wx.CronSendUnreadTemplate:output_type -> google.protobuf.Empty
+	2, // 7: api.wx.Wx.SendNewMessageUnreadReminder:output_type -> google.protobuf.Empty
+	2, // 8: api.wx.Wx.SendNewVisitorTemplateReminder:output_type -> google.protobuf.Empty
+	2, // 9: api.wx.Wx.ReduceUserUnread:output_type -> google.protobuf.Empty
+	5, // [5:10] is the sub-list for method output_type
+	0, // [0:5] is the sub-list for method input_type
 	0, // [0:0] is the sub-list for extension type_name
 	0, // [0:0] is the sub-list for extension extendee
 	0, // [0:0] is the sub-list for field type_name
@@ -160,6 +228,18 @@ func file_wx_proto_init() {
 	}
 	if !protoimpl.UnsafeEnabled {
 		file_wx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*ReduceUserUnreadRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_wx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*SendNewMessageUnreadReminderRequest); i {
 			case 0:
 				return &v.state
@@ -178,7 +258,7 @@ func file_wx_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_wx_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   1,
+			NumMessages:   2,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 7 - 0
api/wx/wx.proto

@@ -20,6 +20,13 @@ service Wx {
   rpc SendNewMessageUnreadReminder (SendNewMessageUnreadReminderRequest) returns (google.protobuf.Empty){};
   // 好友访问提醒
   rpc SendNewVisitorTemplateReminder (common.PersonIDParam) returns (google.protobuf.Empty){};
+  // 移除用户已读
+  rpc ReduceUserUnread (ReduceUserUnreadRequest) returns (google.protobuf.Empty){};
+}
+
+message ReduceUserUnreadRequest{
+  int64 accountId = 1;
+  string personId = 2;
 }
 
 message SendNewMessageUnreadReminderRequest{

+ 38 - 0
api/wx/wx_grpc.pb.go

@@ -28,6 +28,8 @@ type WxClient interface {
 	SendNewMessageUnreadReminder(ctx context.Context, in *SendNewMessageUnreadReminderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 好友访问提醒
 	SendNewVisitorTemplateReminder(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 移除用户已读
+	ReduceUserUnread(ctx context.Context, in *ReduceUserUnreadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
 
 type wxClient struct {
@@ -74,6 +76,15 @@ func (c *wxClient) SendNewVisitorTemplateReminder(ctx context.Context, in *commo
 	return out, nil
 }
 
+func (c *wxClient) ReduceUserUnread(ctx context.Context, in *ReduceUserUnreadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.wx.Wx/ReduceUserUnread", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // WxServer is the server API for Wx service.
 // All implementations must embed UnimplementedWxServer
 // for forward compatibility
@@ -86,6 +97,8 @@ type WxServer interface {
 	SendNewMessageUnreadReminder(context.Context, *SendNewMessageUnreadReminderRequest) (*emptypb.Empty, error)
 	// 好友访问提醒
 	SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
+	// 移除用户已读
+	ReduceUserUnread(context.Context, *ReduceUserUnreadRequest) (*emptypb.Empty, error)
 	mustEmbedUnimplementedWxServer()
 }
 
@@ -105,6 +118,9 @@ func (UnimplementedWxServer) SendNewMessageUnreadReminder(context.Context, *Send
 func (UnimplementedWxServer) SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method SendNewVisitorTemplateReminder not implemented")
 }
+func (UnimplementedWxServer) ReduceUserUnread(context.Context, *ReduceUserUnreadRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method ReduceUserUnread not implemented")
+}
 func (UnimplementedWxServer) mustEmbedUnimplementedWxServer() {}
 
 // UnsafeWxServer may be embedded to opt out of forward compatibility for this service.
@@ -190,6 +206,24 @@ func _Wx_SendNewVisitorTemplateReminder_Handler(srv interface{}, ctx context.Con
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Wx_ReduceUserUnread_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(ReduceUserUnreadRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(WxServer).ReduceUserUnread(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.wx.Wx/ReduceUserUnread",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(WxServer).ReduceUserUnread(ctx, req.(*ReduceUserUnreadRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Wx_ServiceDesc is the grpc.ServiceDesc for Wx service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -213,6 +247,10 @@ var Wx_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "SendNewVisitorTemplateReminder",
 			Handler:    _Wx_SendNewVisitorTemplateReminder_Handler,
 		},
+		{
+			MethodName: "ReduceUserUnread",
+			Handler:    _Wx_ReduceUserUnread_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "wx.proto",

+ 4 - 0
js/api/wx/wx_pb.ts

@@ -1,3 +1,7 @@
+export interface ReduceUserUnreadRequest{
+    accountId?:number;
+    personId?:string;
+}
 export interface SendNewMessageUnreadReminderRequest{
     personId?:string;
     sendPersonId?:string;