wfz пре 2 година
родитељ
комит
b39e9fdf48

+ 71 - 59
api/check/check.pb.go

@@ -7,6 +7,7 @@
 package check
 
 import (
+	common "git.ikuban.com/server/pw-protobuf/api/common"
 	_ "google.golang.org/genproto/googleapis/api/annotations"
 	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
@@ -203,54 +204,61 @@ var file_check_proto_rawDesc = []byte{
 	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
 	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x22, 0x30, 0x0a, 0x14, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74,
-	0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63,
-	0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
-	0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x92, 0x01, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
-	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
-	0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
-	0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
-	0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64,
-	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x14,
-	0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,
-	0x70, 0x70, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x73, 0x4d, 0x69, 0x6e, 0x69, 0x50, 0x72,
-	0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x4d,
-	0x69, 0x6e, 0x69, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x22, 0x28, 0x0a, 0x0a, 0x43, 0x68,
-	0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x55, 0x6e,
-	0x50, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x55, 0x6e,
-	0x50, 0x61, 0x73, 0x73, 0x32, 0xbc, 0x03, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x3d,
-	0x0a, 0x09, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x12, 0x17, 0x2e, 0x61, 0x70,
-	0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71,
-	0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b,
-	0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x40, 0x0a,
-	0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x17, 0x2e,
+	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, 0x30, 0x0a, 0x14,
+	0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71,
+	0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
+	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x92,
+	0x01, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+	0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76,
+	0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12,
+	0x16, 0x0a, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64,
+	0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x24, 0x0a,
+	0x0d, 0x69, 0x73, 0x4d, 0x69, 0x6e, 0x69, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x05,
+	0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x4d, 0x69, 0x6e, 0x69, 0x50, 0x72, 0x6f, 0x67,
+	0x72, 0x61, 0x6d, 0x22, 0x28, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c,
+	0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x55, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x55, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x32, 0x91, 0x04,
+	0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x3d, 0x0a, 0x09, 0x43, 0x68, 0x65, 0x63, 0x6b,
+	0x54, 0x65, 0x78, 0x74, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b,
+	0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e,
 	0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
-	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65,
-	0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
-	0x3e, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x17, 0x2e,
-	0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
-	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65,
-	0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
-	0x49, 0x0a, 0x15, 0x43, 0x72, 0x6f, 0x6e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x42, 0x61,
-	0x69, 0x64, 0x75, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 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, 0x42, 0x0a, 0x0e, 0x43, 0x68,
-	0x65, 0x63, 0x6b, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x56, 0x32, 0x12, 0x17, 0x2e, 0x61,
-	0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
-	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63,
-	0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x63,
-	0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x48, 0x74, 0x74, 0x70, 0x12,
-	0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63,
-	0x6b, 0x54, 0x65, 0x78, 0x74, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
-	0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65,
-	0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22,
-	0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2f, 0x74, 0x65, 0x78, 0x74,
-	0x3a, 0x01, 0x2a, 0x42, 0x40, 0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b,
-	0x50, 0x01, 0x5a, 0x31, 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, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x3b,
-	0x63, 0x68, 0x65, 0x63, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50,
+	0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65,
+	0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+	0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63,
+	0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63,
+	0x6b, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65,
+	0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+	0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63,
+	0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x15, 0x43, 0x72, 0x6f, 0x6e,
+	0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x42, 0x61, 0x69, 0x64, 0x75, 0x54, 0x6f, 0x6b, 0x65,
+	0x6e, 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, 0x42, 0x0a, 0x0e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x69, 0x63, 0x74,
+	0x75, 0x72, 0x65, 0x56, 0x32, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63,
+	0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,
+	0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b,
+	0x54, 0x65, 0x78, 0x74, 0x48, 0x74, 0x74, 0x70, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63,
+	0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x48, 0x74,
+	0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+	0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79,
+	0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22, 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
+	0x68, 0x65, 0x63, 0x6b, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x53, 0x0a, 0x0d,
+	0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x12, 0x20, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,
+	0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+	0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x68, 0x65,
+	0x63, 0x6b, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
+	0x00, 0x42, 0x40, 0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x01,
+	0x5a, 0x31, 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, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x3b, 0x63, 0x68,
+	0x65, 0x63, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -267,10 +275,12 @@ func file_check_proto_rawDescGZIP() []byte {
 
 var file_check_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
 var file_check_proto_goTypes = []interface{}{
-	(*CheckTextHttpRequest)(nil), // 0: api.check.CheckTextHttpRequest
-	(*CheckRequest)(nil),         // 1: api.check.CheckRequest
-	(*CheckReply)(nil),           // 2: api.check.CheckReply
-	(*emptypb.Empty)(nil),        // 3: google.protobuf.Empty
+	(*CheckTextHttpRequest)(nil),        // 0: api.check.CheckTextHttpRequest
+	(*CheckRequest)(nil),                // 1: api.check.CheckRequest
+	(*CheckReply)(nil),                  // 2: api.check.CheckReply
+	(*emptypb.Empty)(nil),               // 3: google.protobuf.Empty
+	(*common.CheckIdentifyRequest)(nil), // 4: api.common.CheckIdentifyRequest
+	(*common.CheckIdentifyReply)(nil),   // 5: api.common.CheckIdentifyReply
 }
 var file_check_proto_depIdxs = []int32{
 	1, // 0: api.check.Check.CheckText:input_type -> api.check.CheckRequest
@@ -279,14 +289,16 @@ var file_check_proto_depIdxs = []int32{
 	3, // 3: api.check.Check.CronRefreshBaiduToken:input_type -> google.protobuf.Empty
 	1, // 4: api.check.Check.CheckPictureV2:input_type -> api.check.CheckRequest
 	0, // 5: api.check.Check.CheckTextHttp:input_type -> api.check.CheckTextHttpRequest
-	2, // 6: api.check.Check.CheckText:output_type -> api.check.CheckReply
-	2, // 7: api.check.Check.CheckPicture:output_type -> api.check.CheckReply
-	2, // 8: api.check.Check.CheckVoice:output_type -> api.check.CheckReply
-	3, // 9: api.check.Check.CronRefreshBaiduToken:output_type -> google.protobuf.Empty
-	2, // 10: api.check.Check.CheckPictureV2:output_type -> api.check.CheckReply
-	2, // 11: api.check.Check.CheckTextHttp:output_type -> api.check.CheckReply
-	6, // [6:12] is the sub-list for method output_type
-	0, // [0:6] is the sub-list for method input_type
+	4, // 6: api.check.Check.CheckIdentify:input_type -> api.common.CheckIdentifyRequest
+	2, // 7: api.check.Check.CheckText:output_type -> api.check.CheckReply
+	2, // 8: api.check.Check.CheckPicture:output_type -> api.check.CheckReply
+	2, // 9: api.check.Check.CheckVoice:output_type -> api.check.CheckReply
+	3, // 10: api.check.Check.CronRefreshBaiduToken:output_type -> google.protobuf.Empty
+	2, // 11: api.check.Check.CheckPictureV2:output_type -> api.check.CheckReply
+	2, // 12: api.check.Check.CheckTextHttp:output_type -> api.check.CheckReply
+	5, // 13: api.check.Check.CheckIdentify:output_type -> api.common.CheckIdentifyReply
+	7, // [7:14] is the sub-list for method output_type
+	0, // [0:7] 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

+ 2 - 0
api/check/check.proto

@@ -5,6 +5,7 @@ package api.check;
 import "google/api/annotations.proto";
 //import "google/protobuf/struct.proto";
 import "google/protobuf/empty.proto";
+import "api/common/common.proto";
 
 option go_package = "git.ikuban.com/server/pw-protobuf/api/check;check";
 option java_multiple_files = true;
@@ -22,6 +23,7 @@ service Check {
       body:"*"
     };
   };
+  rpc CheckIdentify (common.CheckIdentifyRequest) returns (common.CheckIdentifyReply){};
 }
 
 message CheckTextHttpRequest{

+ 37 - 0
api/check/check_grpc.pb.go

@@ -4,6 +4,7 @@ package check
 
 import (
 	context "context"
+	common "git.ikuban.com/server/pw-protobuf/api/common"
 	grpc "google.golang.org/grpc"
 	codes "google.golang.org/grpc/codes"
 	status "google.golang.org/grpc/status"
@@ -25,6 +26,7 @@ type CheckClient interface {
 	CronRefreshBaiduToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	CheckPictureV2(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error)
 	CheckTextHttp(ctx context.Context, in *CheckTextHttpRequest, opts ...grpc.CallOption) (*CheckReply, error)
+	CheckIdentify(ctx context.Context, in *common.CheckIdentifyRequest, opts ...grpc.CallOption) (*common.CheckIdentifyReply, error)
 }
 
 type checkClient struct {
@@ -89,6 +91,15 @@ func (c *checkClient) CheckTextHttp(ctx context.Context, in *CheckTextHttpReques
 	return out, nil
 }
 
+func (c *checkClient) CheckIdentify(ctx context.Context, in *common.CheckIdentifyRequest, opts ...grpc.CallOption) (*common.CheckIdentifyReply, error) {
+	out := new(common.CheckIdentifyReply)
+	err := c.cc.Invoke(ctx, "/api.check.Check/CheckIdentify", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // CheckServer is the server API for Check service.
 // All implementations must embed UnimplementedCheckServer
 // for forward compatibility
@@ -99,6 +110,7 @@ type CheckServer interface {
 	CronRefreshBaiduToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
 	CheckPictureV2(context.Context, *CheckRequest) (*CheckReply, error)
 	CheckTextHttp(context.Context, *CheckTextHttpRequest) (*CheckReply, error)
+	CheckIdentify(context.Context, *common.CheckIdentifyRequest) (*common.CheckIdentifyReply, error)
 	mustEmbedUnimplementedCheckServer()
 }
 
@@ -124,6 +136,9 @@ func (UnimplementedCheckServer) CheckPictureV2(context.Context, *CheckRequest) (
 func (UnimplementedCheckServer) CheckTextHttp(context.Context, *CheckTextHttpRequest) (*CheckReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckTextHttp not implemented")
 }
+func (UnimplementedCheckServer) CheckIdentify(context.Context, *common.CheckIdentifyRequest) (*common.CheckIdentifyReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method CheckIdentify not implemented")
+}
 func (UnimplementedCheckServer) mustEmbedUnimplementedCheckServer() {}
 
 // UnsafeCheckServer may be embedded to opt out of forward compatibility for this service.
@@ -245,6 +260,24 @@ func _Check_CheckTextHttp_Handler(srv interface{}, ctx context.Context, dec func
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Check_CheckIdentify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.CheckIdentifyRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(CheckServer).CheckIdentify(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.check.Check/CheckIdentify",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(CheckServer).CheckIdentify(ctx, req.(*common.CheckIdentifyRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Check_ServiceDesc is the grpc.ServiceDesc for Check service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -276,6 +309,10 @@ var Check_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "CheckTextHttp",
 			Handler:    _Check_CheckTextHttp_Handler,
 		},
+		{
+			MethodName: "CheckIdentify",
+			Handler:    _Check_CheckIdentify_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "check.proto",

+ 153 - 7
api/common/common.pb.go

@@ -9302,6 +9302,116 @@ func (x *TokenMessage) GetAccountId() int64 {
 	return 0
 }
 
+type CheckIdentifyRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
+	IdCard string `protobuf:"bytes,2,opt,name=IdCard,proto3" json:"IdCard"`
+}
+
+func (x *CheckIdentifyRequest) Reset() {
+	*x = CheckIdentifyRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_common_proto_msgTypes[120]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *CheckIdentifyRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CheckIdentifyRequest) ProtoMessage() {}
+
+func (x *CheckIdentifyRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_common_proto_msgTypes[120]
+	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 CheckIdentifyRequest.ProtoReflect.Descriptor instead.
+func (*CheckIdentifyRequest) Descriptor() ([]byte, []int) {
+	return file_common_proto_rawDescGZIP(), []int{120}
+}
+
+func (x *CheckIdentifyRequest) GetName() string {
+	if x != nil {
+		return x.Name
+	}
+	return ""
+}
+
+func (x *CheckIdentifyRequest) GetIdCard() string {
+	if x != nil {
+		return x.IdCard
+	}
+	return ""
+}
+
+type CheckIdentifyReply struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	IsPass      bool   `protobuf:"varint,1,opt,name=isPass,proto3" json:"isPass"`
+	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description"`
+}
+
+func (x *CheckIdentifyReply) Reset() {
+	*x = CheckIdentifyReply{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_common_proto_msgTypes[121]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *CheckIdentifyReply) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CheckIdentifyReply) ProtoMessage() {}
+
+func (x *CheckIdentifyReply) ProtoReflect() protoreflect.Message {
+	mi := &file_common_proto_msgTypes[121]
+	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 CheckIdentifyReply.ProtoReflect.Descriptor instead.
+func (*CheckIdentifyReply) Descriptor() ([]byte, []int) {
+	return file_common_proto_rawDescGZIP(), []int{121}
+}
+
+func (x *CheckIdentifyReply) GetIsPass() bool {
+	if x != nil {
+		return x.IsPass
+	}
+	return false
+}
+
+func (x *CheckIdentifyReply) GetDescription() string {
+	if x != nil {
+		return x.Description
+	}
+	return ""
+}
+
 var File_common_proto protoreflect.FileDescriptor
 
 var file_common_proto_rawDesc = []byte{
@@ -10535,11 +10645,21 @@ var file_common_proto_rawDesc = []byte{
 	0x70, 0x70, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73,
 	0x73, 0x61, 0x67, 0x65, 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, 0x42, 0x43, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
-	0x50, 0x01, 0x5a, 0x33, 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, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
-	0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x49, 0x64, 0x22, 0x42, 0x0a, 0x14, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x64, 0x65, 0x6e, 0x74,
+	0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
+	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16,
+	0x0a, 0x06, 0x49, 0x64, 0x43, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
+	0x49, 0x64, 0x43, 0x61, 0x72, 0x64, 0x22, 0x4e, 0x0a, 0x12, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49,
+	0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06,
+	0x69, 0x73, 0x50, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73,
+	0x50, 0x61, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
+	0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
+	0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x43, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f,
+	0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x33, 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, 0x63, 0x6f,
+	0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x33,
 }
 
 var (
@@ -10554,7 +10674,7 @@ func file_common_proto_rawDescGZIP() []byte {
 	return file_common_proto_rawDescData
 }
 
-var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 120)
+var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 122)
 var file_common_proto_goTypes = []interface{}{
 	(*UserAndPartnerIdentifyIdParam)(nil),         // 0: api.common.UserAndPartnerIdentifyIdParam
 	(*UserAndPartnerParam)(nil),                   // 1: api.common.UserAndPartnerParam
@@ -10676,6 +10796,8 @@ var file_common_proto_goTypes = []interface{}{
 	(*ManagerFindCanHandpickUserInfo)(nil),        // 117: api.common.ManagerFindCanHandpickUserInfo
 	(*SendMessageRequest)(nil),                    // 118: api.common.SendMessageRequest
 	(*TokenMessage)(nil),                          // 119: api.common.TokenMessage
+	(*CheckIdentifyRequest)(nil),                  // 120: api.common.CheckIdentifyRequest
+	(*CheckIdentifyReply)(nil),                    // 121: api.common.CheckIdentifyReply
 }
 var file_common_proto_depIdxs = []int32{
 	34,  // 0: api.common.HomeInfo.tagList:type_name -> api.common.TagList
@@ -12157,6 +12279,30 @@ func file_common_proto_init() {
 				return nil
 			}
 		}
+		file_common_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*CheckIdentifyRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_common_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*CheckIdentifyReply); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
 	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
@@ -12164,7 +12310,7 @@ func file_common_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_common_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   120,
+			NumMessages:   122,
 			NumExtensions: 0,
 			NumServices:   0,
 		},

+ 10 - 0
api/common/common.proto

@@ -946,4 +946,14 @@ message SendMessageRequest{
 
 message TokenMessage{
   int64 accountId = 1;
+}
+
+message CheckIdentifyRequest{
+  string name = 1;
+  string IdCard = 2;
+}
+
+message CheckIdentifyReply{
+  bool isPass = 1;
+  string description = 2;
 }

Разлика између датотеке није приказан због своје велике величине
+ 977 - 958
api/user/user.pb.go


+ 8 - 0
api/user/user.proto

@@ -560,6 +560,13 @@ service User {
       body:"*"
     };
   };
+  // 实名认证
+  rpc Certification (common.CheckIdentifyRequest) returns (common.CheckIdentifyReply){
+    option (google.api.http) = {
+      post: "/api/user/certification",
+      body:"*"
+    };
+  };
 
   // ---rpc---
   // 获取用户详情
@@ -668,6 +675,7 @@ message VipInfo{
   bool isYearVip = 7;// 是否是年费vip
   repeated string vipFunctions = 8;// vip功能
   string userId = 9;// id
+  bool isCertification = 10;// 是否实名认证
 }
 
 message SendMsgReduceCreditRequest{

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

@@ -177,6 +177,8 @@ type UserClient interface {
 	UpdateUserPhone(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 清除用户的未读数
 	CleanUserUnReadNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 实名认证
+	Certification(ctx context.Context, in *common.CheckIdentifyRequest, opts ...grpc.CallOption) (*common.CheckIdentifyReply, error)
 	// ---rpc---
 	// 获取用户详情
 	GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error)
@@ -938,6 +940,15 @@ func (c *userClient) CleanUserUnReadNum(ctx context.Context, in *emptypb.Empty,
 	return out, nil
 }
 
+func (c *userClient) Certification(ctx context.Context, in *common.CheckIdentifyRequest, opts ...grpc.CallOption) (*common.CheckIdentifyReply, error) {
+	out := new(common.CheckIdentifyReply)
+	err := c.cc.Invoke(ctx, "/api.user.User/Certification", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *userClient) GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
 	out := new(common.PersonMsg)
 	err := c.cc.Invoke(ctx, "/api.user.User/GetUserDBMsg", in, out, opts...)
@@ -1313,6 +1324,8 @@ type UserServer interface {
 	UpdateUserPhone(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
 	// 清除用户的未读数
 	CleanUserUnReadNum(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
+	// 实名认证
+	Certification(context.Context, *common.CheckIdentifyRequest) (*common.CheckIdentifyReply, error)
 	// ---rpc---
 	// 获取用户详情
 	GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
@@ -1603,6 +1616,9 @@ func (UnimplementedUserServer) UpdateUserPhone(context.Context, *common.CheckPho
 func (UnimplementedUserServer) CleanUserUnReadNum(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CleanUserUnReadNum not implemented")
 }
+func (UnimplementedUserServer) Certification(context.Context, *common.CheckIdentifyRequest) (*common.CheckIdentifyReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method Certification not implemented")
+}
 func (UnimplementedUserServer) GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetUserDBMsg not implemented")
 }
@@ -3092,6 +3108,24 @@ func _User_CleanUserUnReadNum_Handler(srv interface{}, ctx context.Context, dec
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_Certification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.CheckIdentifyRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).Certification(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/Certification",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).Certification(ctx, req.(*common.CheckIdentifyRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _User_GetUserDBMsg_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 {
@@ -3843,6 +3877,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "CleanUserUnReadNum",
 			Handler:    _User_CleanUserUnReadNum_Handler,
 		},
+		{
+			MethodName: "Certification",
+			Handler:    _User_Certification_Handler,
+		},
 		{
 			MethodName: "GetUserDBMsg",
 			Handler:    _User_GetUserDBMsg_Handler,

+ 43 - 0
api/user/user_http.pb.go

@@ -30,6 +30,7 @@ var _ = new(base.Html)
 const _ = http.SupportPackageIsVersion1
 
 type UserHTTPServer interface {
+	Certification(context.Context, *common.CheckIdentifyRequest) (*common.CheckIdentifyReply, error)
 	CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
 	CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
 	CleanUserUnReadNum(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
@@ -190,6 +191,7 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
 	r.POST("/api/user/scrip/star", _User_PersonStarScrip0_HTTP_Handler(srv))
 	r.POST("/api/user/update/phone", _User_UpdateUserPhone0_HTTP_Handler(srv))
 	r.POST("/api/user/chat/clean/unread", _User_CleanUserUnReadNum0_HTTP_Handler(srv))
+	r.POST("/api/user/certification", _User_Certification0_HTTP_Handler(srv))
 }
 
 func _User_GetUserInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
@@ -2298,7 +2300,35 @@ func _User_CleanUserUnReadNum0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Co
 	}
 }
 
+func _User_Certification0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.CheckIdentifyRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.user.User/Certification")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.Certification(ctx, req.(*common.CheckIdentifyRequest))
+		})
+		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 UserHTTPClient interface {
+	Certification(ctx context.Context, req *common.CheckIdentifyRequest, opts ...http.CallOption) (rsp *common.CheckIdentifyReply, err error)
 	CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	CheckUserPartnerIsRelationship(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
 	CleanUserUnReadNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
@@ -2387,6 +2417,19 @@ func NewUserHTTPClient(client *http.Client) UserHTTPClient {
 	return &UserHTTPClientImpl{client}
 }
 
+func (c *UserHTTPClientImpl) Certification(ctx context.Context, in *common.CheckIdentifyRequest, opts ...http.CallOption) (*common.CheckIdentifyReply, error) {
+	var out common.CheckIdentifyReply
+	pattern := "/api/user/certification"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.user.User/Certification"))
+	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 *UserHTTPClientImpl) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
 	var out emptypb.Empty
 	pattern := "/api/user/code/check"

+ 1 - 0
js/api/check/check_http_pb.ts

@@ -1,6 +1,7 @@
 // @ts-ignore
 import request from '@/libs/request';
 import {CheckRequest,CheckReply,CheckTextHttpRequest} from "./check_pb";
+import {CheckIdentifyRequest,CheckIdentifyReply} from "../common/common_pb";
 
 const CheckService = {
   CheckTextHttp: async (req?: CheckTextHttpRequest) => {

+ 8 - 0
js/api/common/common_pb.ts

@@ -1245,4 +1245,12 @@ export interface SendMessageRequest{
 export interface TokenMessage{
     accountId?:number;
 }
+export interface CheckIdentifyRequest{
+    name?:string;
+    IdCard?:string;
+}
+export interface CheckIdentifyReply{
+    isPass?:boolean;
+    description?:string;
+}
 

+ 6 - 1
js/api/user/user_http_pb.ts

@@ -1,7 +1,7 @@
 // @ts-ignore
 import request from '@/libs/request';
 import {UserInfo,UserBalance,UserFindChatListReply,CreateScripRequest,DeleteScripRequest,UserFindScripRequest,PersonLookScripRequest,ReplyScripRequest,KeyRequest,InformationStatus,UserRechargeRequest,PayInfo,RechargeList,VipRechargeList,FindPayOrderListRequest,PayOrderList,FindMatchingAvatarAndNumReply,UserFreeNum,GetRandomMatchingRequest,SendMessageRequest,VipInfo,GetUserLookHandPickNumReply,IsCanGetReturnRewordReply,UserPrivacyStatusInfo,FindRecommendHighQualityUserRequest,FindRecommendHighQualityUserReply,GetUserDBMsgFromWebsocketReply,SendMsgReduceCreditRequest,UpdateUserMatchedNumRequest,UpdateUserMatchedNumAndReturnUserMsgReply,GetRecommendUserDBRequest,ReportUserBlackRequest,AddUserCreditRequest,UserGetInformationAwardByActivityRequest,UserGetInformationAwardByActivityReply,FindUserVipListDBReply,MatchUserDBWithoutMapRequest,UpdateTodayRequest,UpdateLastSendTemplateTimeRequest} from "./user_pb";
-import {SendPhoneCodeRequest,CheckPhoneCodeRequest,UpdateInformationRequest,CreateChatRoomParam,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,SexReq,TagListReply,ListPage2Request,RecommendPersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,ChatCardInfo,ReportChatRequest,FindOverSevenDayAvatarReply,UpdateLastScripIDRequest,ScripID,ScripReply,FindScripRequest,ScripInfo,ChatRecordInfo,RoomIDRequest,PartnerIDParam,AddFriendMessageInfo,SendMessageReply,HandpickPersonListReply,PersonIDParam,ScripIdRequest,PersonMsg,PersonIDList,PersonDBReply,UpdateLastScripIDDBRequest,IDParam,PersonDB,GetUserDBAndInitReq,PersonDBDetails} from "../common/common_pb";
+import {SendPhoneCodeRequest,CheckPhoneCodeRequest,UpdateInformationRequest,CreateChatRoomParam,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,SexReq,TagListReply,ListPage2Request,RecommendPersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,ChatCardInfo,ReportChatRequest,FindOverSevenDayAvatarReply,UpdateLastScripIDRequest,ScripID,ScripReply,FindScripRequest,ScripInfo,ChatRecordInfo,RoomIDRequest,PartnerIDParam,AddFriendMessageInfo,SendMessageReply,HandpickPersonListReply,PersonIDParam,ScripIdRequest,CheckIdentifyRequest,CheckIdentifyReply,PersonMsg,PersonIDList,PersonDBReply,UpdateLastScripIDDBRequest,IDParam,PersonDB,GetUserDBAndInitReq,PersonDBDetails} from "../common/common_pb";
 import {RoomReply,UnreadNumReply,UserRoomInfo,CheckUserPartnerIsRelationshipReply,WindowInfo,GetRandomMatchingReply} from "../chat/chat_pb";
 import {LookAndLikeListReply,LookAndLikeMessageReply,LookMessageReply} from "../statistics/statistics_pb";
 
@@ -395,6 +395,11 @@ const UserService = {
 	const res = await request.post('/api/user/chat/clean/unread', req);
     return res.data.data;
   },
+  /**  实名认证 */
+  Certification: async (req?: CheckIdentifyRequest) => {
+	const res = await request.post<{ data: CheckIdentifyReply, code: string, message: string }>('/api/user/certification', req);
+    return res.data.data;
+  },
 
 };
 

+ 2 - 0
js/api/user/user_pb.ts

@@ -70,6 +70,8 @@ export interface VipInfo{
     vipFunctions?:Array<string>;
     /**  id */
     userId?:string;
+    /**  是否实名认证 */
+    isCertification?:boolean;
 }
 export interface SendMsgReduceCreditRequest{
     /**  查询目标的ID */

Неке датотеке нису приказане због велике количине промена