Prechádzať zdrojové kódy

CheckScripSamplePicture

wfz 2 rokov pred
rodič
commit
30f5e9a4ea
3 zmenil súbory, kde vykonal 73 pridanie a 29 odobranie
  1. 36 29
      api/check/check.pb.go
  2. 1 0
      api/check/check.proto
  3. 36 0
      api/check/check_grpc.pb.go

+ 36 - 29
api/check/check.pb.go

@@ -220,7 +220,7 @@ var file_check_proto_rawDesc = []byte{
 	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,
+	0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x55, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x32, 0xde, 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,
@@ -242,23 +242,28 @@ var file_check_proto_rawDesc = []byte{
 	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,
+	0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b,
+	0x53, 0x63, 0x72, 0x69, 0x70, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 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, 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 (
@@ -288,17 +293,19 @@ var file_check_proto_depIdxs = []int32{
 	1, // 2: api.check.Check.CheckVoice:input_type -> api.check.CheckRequest
 	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
-	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
+	1, // 5: api.check.Check.CheckScripSamplePicture:input_type -> api.check.CheckRequest
+	0, // 6: api.check.Check.CheckTextHttp:input_type -> api.check.CheckTextHttpRequest
+	4, // 7: api.check.Check.CheckIdentify:input_type -> api.common.CheckIdentifyRequest
+	2, // 8: api.check.Check.CheckText:output_type -> api.check.CheckReply
+	2, // 9: api.check.Check.CheckPicture:output_type -> api.check.CheckReply
+	2, // 10: api.check.Check.CheckVoice:output_type -> api.check.CheckReply
+	3, // 11: api.check.Check.CronRefreshBaiduToken:output_type -> google.protobuf.Empty
+	2, // 12: api.check.Check.CheckPictureV2:output_type -> api.check.CheckReply
+	2, // 13: api.check.Check.CheckScripSamplePicture:output_type -> api.check.CheckReply
+	2, // 14: api.check.Check.CheckTextHttp:output_type -> api.check.CheckReply
+	5, // 15: api.check.Check.CheckIdentify:output_type -> api.common.CheckIdentifyReply
+	8, // [8:16] is the sub-list for method output_type
+	0, // [0:8] 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

+ 1 - 0
api/check/check.proto

@@ -17,6 +17,7 @@ service Check {
   rpc CheckVoice (CheckRequest) returns (CheckReply){};
   rpc CronRefreshBaiduToken (google.protobuf.Empty) returns (google.protobuf.Empty){};
   rpc CheckPictureV2 (CheckRequest) returns (CheckReply){};
+  rpc CheckScripSamplePicture (CheckRequest) returns (CheckReply){};
   rpc CheckTextHttp(CheckTextHttpRequest) returns (CheckReply){
     option (google.api.http) = {
       post: "/api/check/text",

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

@@ -25,6 +25,7 @@ type CheckClient interface {
 	CheckVoice(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error)
 	CronRefreshBaiduToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	CheckPictureV2(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error)
+	CheckScripSamplePicture(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)
 }
@@ -82,6 +83,15 @@ func (c *checkClient) CheckPictureV2(ctx context.Context, in *CheckRequest, opts
 	return out, nil
 }
 
+func (c *checkClient) CheckScripSamplePicture(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error) {
+	out := new(CheckReply)
+	err := c.cc.Invoke(ctx, "/api.check.Check/CheckScripSamplePicture", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *checkClient) CheckTextHttp(ctx context.Context, in *CheckTextHttpRequest, opts ...grpc.CallOption) (*CheckReply, error) {
 	out := new(CheckReply)
 	err := c.cc.Invoke(ctx, "/api.check.Check/CheckTextHttp", in, out, opts...)
@@ -109,6 +119,7 @@ type CheckServer interface {
 	CheckVoice(context.Context, *CheckRequest) (*CheckReply, error)
 	CronRefreshBaiduToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
 	CheckPictureV2(context.Context, *CheckRequest) (*CheckReply, error)
+	CheckScripSamplePicture(context.Context, *CheckRequest) (*CheckReply, error)
 	CheckTextHttp(context.Context, *CheckTextHttpRequest) (*CheckReply, error)
 	CheckIdentify(context.Context, *common.CheckIdentifyRequest) (*common.CheckIdentifyReply, error)
 	mustEmbedUnimplementedCheckServer()
@@ -133,6 +144,9 @@ func (UnimplementedCheckServer) CronRefreshBaiduToken(context.Context, *emptypb.
 func (UnimplementedCheckServer) CheckPictureV2(context.Context, *CheckRequest) (*CheckReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckPictureV2 not implemented")
 }
+func (UnimplementedCheckServer) CheckScripSamplePicture(context.Context, *CheckRequest) (*CheckReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method CheckScripSamplePicture not implemented")
+}
 func (UnimplementedCheckServer) CheckTextHttp(context.Context, *CheckTextHttpRequest) (*CheckReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckTextHttp not implemented")
 }
@@ -242,6 +256,24 @@ func _Check_CheckPictureV2_Handler(srv interface{}, ctx context.Context, dec fun
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Check_CheckScripSamplePicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(CheckRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(CheckServer).CheckScripSamplePicture(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.check.Check/CheckScripSamplePicture",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(CheckServer).CheckScripSamplePicture(ctx, req.(*CheckRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _Check_CheckTextHttp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(CheckTextHttpRequest)
 	if err := dec(in); err != nil {
@@ -305,6 +337,10 @@ var Check_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "CheckPictureV2",
 			Handler:    _Check_CheckPictureV2_Handler,
 		},
+		{
+			MethodName: "CheckScripSamplePicture",
+			Handler:    _Check_CheckScripSamplePicture_Handler,
+		},
 		{
 			MethodName: "CheckTextHttp",
 			Handler:    _Check_CheckTextHttp_Handler,