Browse Source

SendNewVisitorReminder

wfz 2 years ago
parent
commit
82db599b13
6 changed files with 318 additions and 153 deletions
  1. 223 152
      api/wx/wx.pb.go
  2. 8 0
      api/wx/wx.proto
  3. 36 0
      api/wx/wx_grpc.pb.go
  4. 41 0
      api/wx/wx_http.pb.go
  5. 7 1
      js/api/wx/wx_http_pb.ts
  6. 3 0
      js/api/wx/wx_pb.ts

+ 223 - 152
api/wx/wx.pb.go

@@ -24,6 +24,53 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
+type OpenIDRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	OpenId string `protobuf:"bytes,1,opt,name=openId,proto3" json:"openId"`
+}
+
+func (x *OpenIDRequest) Reset() {
+	*x = OpenIDRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_wx_proto_msgTypes[0]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *OpenIDRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*OpenIDRequest) ProtoMessage() {}
+
+func (x *OpenIDRequest) 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 OpenIDRequest.ProtoReflect.Descriptor instead.
+func (*OpenIDRequest) Descriptor() ([]byte, []int) {
+	return file_wx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *OpenIDRequest) GetOpenId() string {
+	if x != nil {
+		return x.OpenId
+	}
+	return ""
+}
+
 type GetAccessTokenRequest struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -35,7 +82,7 @@ type GetAccessTokenRequest struct {
 func (x *GetAccessTokenRequest) Reset() {
 	*x = GetAccessTokenRequest{}
 	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)
 	}
@@ -48,7 +95,7 @@ func (x *GetAccessTokenRequest) String() string {
 func (*GetAccessTokenRequest) ProtoMessage() {}
 
 func (x *GetAccessTokenRequest) 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 {
@@ -61,7 +108,7 @@ func (x *GetAccessTokenRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetAccessTokenRequest.ProtoReflect.Descriptor instead.
 func (*GetAccessTokenRequest) Descriptor() ([]byte, []int) {
-	return file_wx_proto_rawDescGZIP(), []int{0}
+	return file_wx_proto_rawDescGZIP(), []int{1}
 }
 
 func (x *GetAccessTokenRequest) GetAppid() string {
@@ -85,7 +132,7 @@ type GetAccessTokenReply struct {
 func (x *GetAccessTokenReply) Reset() {
 	*x = GetAccessTokenReply{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_wx_proto_msgTypes[1]
+		mi := &file_wx_proto_msgTypes[2]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -98,7 +145,7 @@ func (x *GetAccessTokenReply) String() string {
 func (*GetAccessTokenReply) ProtoMessage() {}
 
 func (x *GetAccessTokenReply) ProtoReflect() protoreflect.Message {
-	mi := &file_wx_proto_msgTypes[1]
+	mi := &file_wx_proto_msgTypes[2]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -111,7 +158,7 @@ func (x *GetAccessTokenReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetAccessTokenReply.ProtoReflect.Descriptor instead.
 func (*GetAccessTokenReply) Descriptor() ([]byte, []int) {
-	return file_wx_proto_rawDescGZIP(), []int{1}
+	return file_wx_proto_rawDescGZIP(), []int{2}
 }
 
 func (x *GetAccessTokenReply) GetAccessToken() string {
@@ -153,7 +200,7 @@ type GetUserMsgByKeyRequest struct {
 func (x *GetUserMsgByKeyRequest) Reset() {
 	*x = GetUserMsgByKeyRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_wx_proto_msgTypes[2]
+		mi := &file_wx_proto_msgTypes[3]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -166,7 +213,7 @@ func (x *GetUserMsgByKeyRequest) String() string {
 func (*GetUserMsgByKeyRequest) ProtoMessage() {}
 
 func (x *GetUserMsgByKeyRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_wx_proto_msgTypes[2]
+	mi := &file_wx_proto_msgTypes[3]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -179,7 +226,7 @@ func (x *GetUserMsgByKeyRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetUserMsgByKeyRequest.ProtoReflect.Descriptor instead.
 func (*GetUserMsgByKeyRequest) Descriptor() ([]byte, []int) {
-	return file_wx_proto_rawDescGZIP(), []int{2}
+	return file_wx_proto_rawDescGZIP(), []int{3}
 }
 
 func (x *GetUserMsgByKeyRequest) GetKey() string {
@@ -203,7 +250,7 @@ type GetUserMsgByKeyReply struct {
 func (x *GetUserMsgByKeyReply) Reset() {
 	*x = GetUserMsgByKeyReply{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_wx_proto_msgTypes[3]
+		mi := &file_wx_proto_msgTypes[4]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -216,7 +263,7 @@ func (x *GetUserMsgByKeyReply) String() string {
 func (*GetUserMsgByKeyReply) ProtoMessage() {}
 
 func (x *GetUserMsgByKeyReply) ProtoReflect() protoreflect.Message {
-	mi := &file_wx_proto_msgTypes[3]
+	mi := &file_wx_proto_msgTypes[4]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -229,7 +276,7 @@ func (x *GetUserMsgByKeyReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetUserMsgByKeyReply.ProtoReflect.Descriptor instead.
 func (*GetUserMsgByKeyReply) Descriptor() ([]byte, []int) {
-	return file_wx_proto_rawDescGZIP(), []int{3}
+	return file_wx_proto_rawDescGZIP(), []int{4}
 }
 
 func (x *GetUserMsgByKeyReply) GetPartnerId() string {
@@ -272,7 +319,7 @@ type ReduceUserUnreadRequest struct {
 func (x *ReduceUserUnreadRequest) Reset() {
 	*x = ReduceUserUnreadRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_wx_proto_msgTypes[4]
+		mi := &file_wx_proto_msgTypes[5]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -285,7 +332,7 @@ func (x *ReduceUserUnreadRequest) String() string {
 func (*ReduceUserUnreadRequest) ProtoMessage() {}
 
 func (x *ReduceUserUnreadRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_wx_proto_msgTypes[4]
+	mi := &file_wx_proto_msgTypes[5]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -298,7 +345,7 @@ func (x *ReduceUserUnreadRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ReduceUserUnreadRequest.ProtoReflect.Descriptor instead.
 func (*ReduceUserUnreadRequest) Descriptor() ([]byte, []int) {
-	return file_wx_proto_rawDescGZIP(), []int{4}
+	return file_wx_proto_rawDescGZIP(), []int{5}
 }
 
 func (x *ReduceUserUnreadRequest) GetAccountId() int64 {
@@ -327,7 +374,7 @@ type SendNewMessageUnreadReminderRequest struct {
 func (x *SendNewMessageUnreadReminderRequest) Reset() {
 	*x = SendNewMessageUnreadReminderRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_wx_proto_msgTypes[5]
+		mi := &file_wx_proto_msgTypes[6]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -340,7 +387,7 @@ func (x *SendNewMessageUnreadReminderRequest) String() string {
 func (*SendNewMessageUnreadReminderRequest) ProtoMessage() {}
 
 func (x *SendNewMessageUnreadReminderRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_wx_proto_msgTypes[5]
+	mi := &file_wx_proto_msgTypes[6]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -353,7 +400,7 @@ func (x *SendNewMessageUnreadReminderRequest) ProtoReflect() protoreflect.Messag
 
 // Deprecated: Use SendNewMessageUnreadReminderRequest.ProtoReflect.Descriptor instead.
 func (*SendNewMessageUnreadReminderRequest) Descriptor() ([]byte, []int) {
-	return file_wx_proto_rawDescGZIP(), []int{5}
+	return file_wx_proto_rawDescGZIP(), []int{6}
 }
 
 func (x *SendNewMessageUnreadReminderRequest) GetPersonId() string {
@@ -381,101 +428,110 @@ var file_wx_proto_rawDesc = []byte{
 	0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
 	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x63, 0x63, 0x6f,
 	0x75, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
-	0x6f, 0x22, 0x2d, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f,
-	0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
-	0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
-	0x22, 0x89, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f,
-	0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65,
-	0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
-	0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65,
-	0x72, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x72,
-	0x72, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x18,
-	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x12, 0x1d, 0x0a,
-	0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
-	0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x22, 0x2a, 0x0a, 0x16,
-	0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x52,
-	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x7c, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55,
-	0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79,
-	0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16,
-	0x0a, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
-	0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18,
-	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07,
-	0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61,
-	0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 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, 0x82, 0x07, 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, 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, 0x22, 0x27, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65,
+	0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x15, 0x47, 0x65,
+	0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,
+	0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x89, 0x01, 0x0a, 0x13, 0x47, 0x65,
+	0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c,
+	0x79, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
+	0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,
+	0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x18,
+	0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x72, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16,
+	0x0a, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
+	0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,
+	0x73, 0x5f, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69,
+	0x72, 0x65, 0x73, 0x49, 0x6e, 0x22, 0x2a, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72,
+	0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+	0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
+	0x79, 0x22, 0x7c, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x42,
+	0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,
+	0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49,
+	0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12,
+	0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+	0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65,
+	0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 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, 0xec, 0x07, 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, 0x51, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
-	0x72, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e,
-	0x77, 0x78, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b,
-	0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e,
-	0x77, 0x78, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b,
-	0x65, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x5c, 0x0a, 0x06, 0x57, 0x78, 0x43,
-	0x6f, 0x6e, 0x66, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
-	0x2e, 0x57, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69,
-	0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x57, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x65,
-	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14,
-	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x78, 0x2f, 0x6a, 0x73, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f,
-	0x6e, 0x66, 0x69, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x74, 0x0a, 0x13, 0x55, 0x70, 0x6c, 0x6f, 0x61,
-	0x64, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x14,
-	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x64,
-	0x69, 0x61, 0x49, 0x44, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
-	0x6e, 0x74, 0x2e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x22,
-	0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x21, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f,
-	0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x75, 0x70,
-	0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x4b, 0x0a,
-	0x17, 0x43, 0x72, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x6c, 0x64, 0x55, 0x73,
-	0x65, 0x72, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+	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,
-	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, 0x6b, 0x0a, 0x0e, 0x47, 0x65,
-	0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x2e, 0x61,
-	0x70, 0x69, 0x2e, 0x77, 0x78, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,
-	0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70,
-	0x69, 0x2e, 0x77, 0x78, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f,
-	0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17,
-	0x12, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73,
-	0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 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, 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,
+	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, 0x12,
+	0x51, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b,
+	0x65, 0x79, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x78, 0x2e, 0x47, 0x65, 0x74, 0x55,
+	0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
+	0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x78, 0x2e, 0x47, 0x65, 0x74, 0x55,
+	0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79,
+	0x22, 0x00, 0x12, 0x5c, 0x0a, 0x06, 0x57, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x15, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x57, 0x78, 0x43, 0x6f, 0x6e, 0x66,
+	0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+	0x2e, 0x57, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+	0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x78,
+	0x2f, 0x6a, 0x73, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x01, 0x2a,
+	0x12, 0x74, 0x0a, 0x13, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69,
+	0x61, 0x6c, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63,
+	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x49, 0x44, 0x1a, 0x19, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x4d, 0x61, 0x74, 0x65,
+	0x72, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26,
+	0x22, 0x21, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6d, 0x61,
+	0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x76, 0x6f,
+	0x69, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x4b, 0x0a, 0x17, 0x43, 0x72, 0x6f, 0x6e, 0x44, 0x65,
+	0x6c, 0x65, 0x74, 0x65, 0x4f, 0x6c, 0x64, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x6c, 0x65, 0x63,
+	0x74, 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, 0x6b, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
+	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x78, 0x2e, 0x47,
+	0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,
+	0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x78, 0x2e, 0x47, 0x65,
+	0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c,
+	0x79, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f,
+	0x67, 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+	0x12, 0x68, 0x0a, 0x16, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x65, 0x77, 0x56, 0x69, 0x73, 0x69, 0x74,
+	0x6f, 0x72, 0x52, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69,
+	0x2e, 0x77, 0x78, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 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, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+	0x19, 0x12, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x2f, 0x73, 0x75, 0x62,
+	0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2f, 0x77, 0x65, 0x62, 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 (
@@ -490,44 +546,47 @@ func file_wx_proto_rawDescGZIP() []byte {
 	return file_wx_proto_rawDescData
 }
 
-var file_wx_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_wx_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
 var file_wx_proto_goTypes = []interface{}{
-	(*GetAccessTokenRequest)(nil),               // 0: api.wx.GetAccessTokenRequest
-	(*GetAccessTokenReply)(nil),                 // 1: api.wx.GetAccessTokenReply
-	(*GetUserMsgByKeyRequest)(nil),              // 2: api.wx.GetUserMsgByKeyRequest
-	(*GetUserMsgByKeyReply)(nil),                // 3: api.wx.GetUserMsgByKeyReply
-	(*ReduceUserUnreadRequest)(nil),             // 4: api.wx.ReduceUserUnreadRequest
-	(*SendNewMessageUnreadReminderRequest)(nil), // 5: api.wx.SendNewMessageUnreadReminderRequest
-	(*emptypb.Empty)(nil),                       // 6: google.protobuf.Empty
-	(*common.PersonIDParam)(nil),                // 7: api.common.PersonIDParam
-	(*common.WxConfReq)(nil),                    // 8: api.common.WxConfReq
-	(*account.MediaID)(nil),                     // 9: api.account.MediaID
-	(*common.WxConfResponse)(nil),               // 10: api.common.WxConfResponse
-	(*account.MaterialLink)(nil),                // 11: api.account.MaterialLink
+	(*OpenIDRequest)(nil),                       // 0: api.wx.OpenIDRequest
+	(*GetAccessTokenRequest)(nil),               // 1: api.wx.GetAccessTokenRequest
+	(*GetAccessTokenReply)(nil),                 // 2: api.wx.GetAccessTokenReply
+	(*GetUserMsgByKeyRequest)(nil),              // 3: api.wx.GetUserMsgByKeyRequest
+	(*GetUserMsgByKeyReply)(nil),                // 4: api.wx.GetUserMsgByKeyReply
+	(*ReduceUserUnreadRequest)(nil),             // 5: api.wx.ReduceUserUnreadRequest
+	(*SendNewMessageUnreadReminderRequest)(nil), // 6: api.wx.SendNewMessageUnreadReminderRequest
+	(*emptypb.Empty)(nil),                       // 7: google.protobuf.Empty
+	(*common.PersonIDParam)(nil),                // 8: api.common.PersonIDParam
+	(*common.WxConfReq)(nil),                    // 9: api.common.WxConfReq
+	(*account.MediaID)(nil),                     // 10: api.account.MediaID
+	(*common.WxConfResponse)(nil),               // 11: api.common.WxConfResponse
+	(*account.MaterialLink)(nil),                // 12: api.account.MaterialLink
 }
 var file_wx_proto_depIdxs = []int32{
-	6,  // 0: api.wx.Wx.CronSignInUser:input_type -> google.protobuf.Empty
-	6,  // 1: api.wx.Wx.CronSendUnreadTemplate:input_type -> google.protobuf.Empty
-	5,  // 2: api.wx.Wx.SendNewMessageUnreadReminder:input_type -> api.wx.SendNewMessageUnreadReminderRequest
-	7,  // 3: api.wx.Wx.SendNewVisitorTemplateReminder:input_type -> api.common.PersonIDParam
-	4,  // 4: api.wx.Wx.ReduceUserUnread:input_type -> api.wx.ReduceUserUnreadRequest
-	2,  // 5: api.wx.Wx.GetUserMsgByKey:input_type -> api.wx.GetUserMsgByKeyRequest
-	8,  // 6: api.wx.Wx.WxConf:input_type -> api.common.WxConfReq
-	9,  // 7: api.wx.Wx.UploadMaterialVoice:input_type -> api.account.MediaID
-	6,  // 8: api.wx.Wx.CronDeleteOldUserSelect:input_type -> google.protobuf.Empty
-	0,  // 9: api.wx.Wx.GetAccessToken:input_type -> api.wx.GetAccessTokenRequest
-	6,  // 10: api.wx.Wx.CronSignInUser:output_type -> google.protobuf.Empty
-	6,  // 11: api.wx.Wx.CronSendUnreadTemplate:output_type -> google.protobuf.Empty
-	6,  // 12: api.wx.Wx.SendNewMessageUnreadReminder:output_type -> google.protobuf.Empty
-	6,  // 13: api.wx.Wx.SendNewVisitorTemplateReminder:output_type -> google.protobuf.Empty
-	6,  // 14: api.wx.Wx.ReduceUserUnread:output_type -> google.protobuf.Empty
-	3,  // 15: api.wx.Wx.GetUserMsgByKey:output_type -> api.wx.GetUserMsgByKeyReply
-	10, // 16: api.wx.Wx.WxConf:output_type -> api.common.WxConfResponse
-	11, // 17: api.wx.Wx.UploadMaterialVoice:output_type -> api.account.MaterialLink
-	6,  // 18: api.wx.Wx.CronDeleteOldUserSelect:output_type -> google.protobuf.Empty
-	1,  // 19: api.wx.Wx.GetAccessToken:output_type -> api.wx.GetAccessTokenReply
-	10, // [10:20] is the sub-list for method output_type
-	0,  // [0:10] is the sub-list for method input_type
+	7,  // 0: api.wx.Wx.CronSignInUser:input_type -> google.protobuf.Empty
+	7,  // 1: api.wx.Wx.CronSendUnreadTemplate:input_type -> google.protobuf.Empty
+	6,  // 2: api.wx.Wx.SendNewMessageUnreadReminder:input_type -> api.wx.SendNewMessageUnreadReminderRequest
+	8,  // 3: api.wx.Wx.SendNewVisitorTemplateReminder:input_type -> api.common.PersonIDParam
+	5,  // 4: api.wx.Wx.ReduceUserUnread:input_type -> api.wx.ReduceUserUnreadRequest
+	3,  // 5: api.wx.Wx.GetUserMsgByKey:input_type -> api.wx.GetUserMsgByKeyRequest
+	9,  // 6: api.wx.Wx.WxConf:input_type -> api.common.WxConfReq
+	10, // 7: api.wx.Wx.UploadMaterialVoice:input_type -> api.account.MediaID
+	7,  // 8: api.wx.Wx.CronDeleteOldUserSelect:input_type -> google.protobuf.Empty
+	1,  // 9: api.wx.Wx.GetAccessToken:input_type -> api.wx.GetAccessTokenRequest
+	0,  // 10: api.wx.Wx.SendNewVisitorReminder:input_type -> api.wx.OpenIDRequest
+	7,  // 11: api.wx.Wx.CronSignInUser:output_type -> google.protobuf.Empty
+	7,  // 12: api.wx.Wx.CronSendUnreadTemplate:output_type -> google.protobuf.Empty
+	7,  // 13: api.wx.Wx.SendNewMessageUnreadReminder:output_type -> google.protobuf.Empty
+	7,  // 14: api.wx.Wx.SendNewVisitorTemplateReminder:output_type -> google.protobuf.Empty
+	7,  // 15: api.wx.Wx.ReduceUserUnread:output_type -> google.protobuf.Empty
+	4,  // 16: api.wx.Wx.GetUserMsgByKey:output_type -> api.wx.GetUserMsgByKeyReply
+	11, // 17: api.wx.Wx.WxConf:output_type -> api.common.WxConfResponse
+	12, // 18: api.wx.Wx.UploadMaterialVoice:output_type -> api.account.MaterialLink
+	7,  // 19: api.wx.Wx.CronDeleteOldUserSelect:output_type -> google.protobuf.Empty
+	2,  // 20: api.wx.Wx.GetAccessToken:output_type -> api.wx.GetAccessTokenReply
+	7,  // 21: api.wx.Wx.SendNewVisitorReminder:output_type -> google.protobuf.Empty
+	11, // [11:22] is the sub-list for method output_type
+	0,  // [0:11] 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
@@ -540,7 +599,7 @@ func file_wx_proto_init() {
 	}
 	if !protoimpl.UnsafeEnabled {
 		file_wx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetAccessTokenRequest); i {
+			switch v := v.(*OpenIDRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -552,7 +611,7 @@ func file_wx_proto_init() {
 			}
 		}
 		file_wx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetAccessTokenReply); i {
+			switch v := v.(*GetAccessTokenRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -564,7 +623,7 @@ func file_wx_proto_init() {
 			}
 		}
 		file_wx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetUserMsgByKeyRequest); i {
+			switch v := v.(*GetAccessTokenReply); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -576,7 +635,7 @@ func file_wx_proto_init() {
 			}
 		}
 		file_wx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetUserMsgByKeyReply); i {
+			switch v := v.(*GetUserMsgByKeyRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -588,7 +647,7 @@ func file_wx_proto_init() {
 			}
 		}
 		file_wx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*ReduceUserUnreadRequest); i {
+			switch v := v.(*GetUserMsgByKeyReply); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -600,6 +659,18 @@ func file_wx_proto_init() {
 			}
 		}
 		file_wx_proto_msgTypes[5].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[6].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*SendNewMessageUnreadReminderRequest); i {
 			case 0:
 				return &v.state
@@ -618,7 +689,7 @@ func file_wx_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_wx_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   6,
+			NumMessages:   7,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 8 - 0
api/wx/wx.proto

@@ -46,8 +46,16 @@ service Wx {
       get: "/api/get_access_token",
     };
   };
+  rpc SendNewVisitorReminder (OpenIDRequest) returns (google.protobuf.Empty){
+    option (google.api.http) = {
+      get: "/api/send/subscribe/web",
+    };
+  };
 }
 
+message OpenIDRequest {
+  string openId = 1;
+}
 message GetAccessTokenRequest{
   string appid = 1;
 }

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

@@ -40,6 +40,7 @@ type WxClient interface {
 	// 定时删除过期选择
 	CronDeleteOldUserSelect(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	GetAccessToken(ctx context.Context, in *GetAccessTokenRequest, opts ...grpc.CallOption) (*GetAccessTokenReply, error)
+	SendNewVisitorReminder(ctx context.Context, in *OpenIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
 
 type wxClient struct {
@@ -140,6 +141,15 @@ func (c *wxClient) GetAccessToken(ctx context.Context, in *GetAccessTokenRequest
 	return out, nil
 }
 
+func (c *wxClient) SendNewVisitorReminder(ctx context.Context, in *OpenIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.wx.Wx/SendNewVisitorReminder", 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
@@ -163,6 +173,7 @@ type WxServer interface {
 	// 定时删除过期选择
 	CronDeleteOldUserSelect(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
 	GetAccessToken(context.Context, *GetAccessTokenRequest) (*GetAccessTokenReply, error)
+	SendNewVisitorReminder(context.Context, *OpenIDRequest) (*emptypb.Empty, error)
 	mustEmbedUnimplementedWxServer()
 }
 
@@ -200,6 +211,9 @@ func (UnimplementedWxServer) CronDeleteOldUserSelect(context.Context, *emptypb.E
 func (UnimplementedWxServer) GetAccessToken(context.Context, *GetAccessTokenRequest) (*GetAccessTokenReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetAccessToken not implemented")
 }
+func (UnimplementedWxServer) SendNewVisitorReminder(context.Context, *OpenIDRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method SendNewVisitorReminder not implemented")
+}
 func (UnimplementedWxServer) mustEmbedUnimplementedWxServer() {}
 
 // UnsafeWxServer may be embedded to opt out of forward compatibility for this service.
@@ -393,6 +407,24 @@ func _Wx_GetAccessToken_Handler(srv interface{}, ctx context.Context, dec func(i
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Wx_SendNewVisitorReminder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(OpenIDRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(WxServer).SendNewVisitorReminder(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.wx.Wx/SendNewVisitorReminder",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(WxServer).SendNewVisitorReminder(ctx, req.(*OpenIDRequest))
+	}
+	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)
@@ -440,6 +472,10 @@ var Wx_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "GetAccessToken",
 			Handler:    _Wx_GetAccessToken_Handler,
 		},
+		{
+			MethodName: "SendNewVisitorReminder",
+			Handler:    _Wx_SendNewVisitorReminder_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "wx.proto",

+ 41 - 0
api/wx/wx_http.pb.go

@@ -12,6 +12,7 @@ import (
 	common "git.ikuban.com/server/pw-protobuf/api/common"
 	http "github.com/go-kratos/kratos/v2/transport/http"
 	binding "github.com/go-kratos/kratos/v2/transport/http/binding"
+	emptypb "google.golang.org/protobuf/types/known/emptypb"
 	ioutil "io/ioutil"
 	time "time"
 )
@@ -29,6 +30,7 @@ const _ = http.SupportPackageIsVersion1
 
 type WxHTTPServer interface {
 	GetAccessToken(context.Context, *GetAccessTokenRequest) (*GetAccessTokenReply, error)
+	SendNewVisitorReminder(context.Context, *OpenIDRequest) (*emptypb.Empty, error)
 	UploadMaterialVoice(context.Context, *account.MediaID) (*account.MaterialLink, error)
 	WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
 }
@@ -38,6 +40,7 @@ func RegisterWxHTTPServer(s *http.Server, srv WxHTTPServer) {
 	r.POST("/api/wx/jssdk/config", _Wx_WxConf0_HTTP_Handler(srv))
 	r.POST("/api/common/material/upload/voice", _Wx_UploadMaterialVoice0_HTTP_Handler(srv))
 	r.GET("/api/get_access_token", _Wx_GetAccessToken0_HTTP_Handler(srv))
+	r.GET("/api/send/subscribe/web", _Wx_SendNewVisitorReminder0_HTTP_Handler(srv))
 }
 
 func _Wx_WxConf0_HTTP_Handler(srv WxHTTPServer) func(ctx http.Context) error {
@@ -118,8 +121,33 @@ func _Wx_GetAccessToken0_HTTP_Handler(srv WxHTTPServer) func(ctx http.Context) e
 	}
 }
 
+func _Wx_SendNewVisitorReminder0_HTTP_Handler(srv WxHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in OpenIDRequest
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.wx.Wx/SendNewVisitorReminder")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.SendNewVisitorReminder(ctx, req.(*OpenIDRequest))
+		})
+		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 WxHTTPClient interface {
 	GetAccessToken(ctx context.Context, req *GetAccessTokenRequest, opts ...http.CallOption) (rsp *GetAccessTokenReply, err error)
+	SendNewVisitorReminder(ctx context.Context, req *OpenIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UploadMaterialVoice(ctx context.Context, req *account.MediaID, opts ...http.CallOption) (rsp *account.MaterialLink, err error)
 	WxConf(ctx context.Context, req *common.WxConfReq, opts ...http.CallOption) (rsp *common.WxConfResponse, err error)
 }
@@ -145,6 +173,19 @@ func (c *WxHTTPClientImpl) GetAccessToken(ctx context.Context, in *GetAccessToke
 	return &out, err
 }
 
+func (c *WxHTTPClientImpl) SendNewVisitorReminder(ctx context.Context, in *OpenIDRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
+	var out emptypb.Empty
+	pattern := "/api/send/subscribe/web"
+	path := binding.EncodeURL(pattern, in, true)
+	opts = append(opts, http.Operation("/api.wx.Wx/SendNewVisitorReminder"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *WxHTTPClientImpl) UploadMaterialVoice(ctx context.Context, in *account.MediaID, opts ...http.CallOption) (*account.MaterialLink, error) {
 	var out account.MaterialLink
 	pattern := "/api/common/material/upload/voice"

+ 7 - 1
js/api/wx/wx_http_pb.ts

@@ -1,6 +1,6 @@
 // @ts-ignore
 import request from '@/libs/request';
-import {SendNewMessageUnreadReminderRequest,ReduceUserUnreadRequest,GetUserMsgByKeyRequest,GetUserMsgByKeyReply,GetAccessTokenRequest,GetAccessTokenReply} from "./wx_pb";
+import {SendNewMessageUnreadReminderRequest,ReduceUserUnreadRequest,GetUserMsgByKeyRequest,GetUserMsgByKeyReply,GetAccessTokenRequest,GetAccessTokenReply,OpenIDRequest} from "./wx_pb";
 import {PersonIDParam,WxConfReq,WxConfResponse} from "../common/common_pb";
 import {MediaID,MaterialLink} from "../account/account_pb";
 
@@ -21,6 +21,12 @@ const WxService = {
 	});
     return res.data.data;
   },
+  SendNewVisitorReminder: async (req?: OpenIDRequest) => {
+	const res = await request.get('/api/send/subscribe/web', {
+		params: req
+	});
+    return res.data.data;
+  },
 
 };
 

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

@@ -1,3 +1,6 @@
+export interface OpenIDRequest{
+    openId?:string;
+}
 export interface GetAccessTokenRequest{
     appid?:string;
 }