wfz 2 ani în urmă
părinte
comite
1c4907c2d7
3 a modificat fișierele cu 587 adăugiri și 0 ștergeri
  1. 145 0
      api/scrip/scrip.pb.go
  2. 33 0
      api/scrip/scrip.proto
  3. 409 0
      api/scrip/scrip_grpc.pb.go

+ 145 - 0
api/scrip/scrip.pb.go

@@ -0,0 +1,145 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// 	protoc-gen-go v1.28.1-devel
+// 	protoc        v3.21.8
+// source: scrip.proto
+
+package scrip
+
+import (
+	common "git.ikuban.com/server/pw-protobuf/api/common"
+	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+	emptypb "google.golang.org/protobuf/types/known/emptypb"
+	reflect "reflect"
+)
+
+const (
+	// Verify that this generated code is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+	// Verify that runtime/protoimpl is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+var File_scrip_proto protoreflect.FileDescriptor
+
+var file_scrip_proto_rawDesc = []byte{
+	0x0a, 0x0b, 0x73, 0x63, 0x72, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61,
+	0x70, 0x69, 0x2e, 0x73, 0x63, 0x72, 0x69, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e,
+	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
+	0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xb3,
+	0x05, 0x0a, 0x05, 0x53, 0x63, 0x72, 0x69, 0x70, 0x12, 0x44, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61,
+	0x74, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f,
+	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70,
+	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f,
+	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x49, 0x44, 0x22, 0x00, 0x12, 0x47,
+	0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x12, 0x1e, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
+	0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 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, 0x45, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x4d,
+	0x79, 0x53, 0x63, 0x72, 0x69, 0x70, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
+	0x6d, 0x6f, 0x6e, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x71,
+	0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
+	0x6e, 0x2e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x4d,
+	0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x53, 0x63, 0x72, 0x69, 0x70,
+	0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x46, 0x69,
+	0x6e, 0x64, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x53, 0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75,
+	0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+	0x2e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x4c, 0x0a,
+	0x12, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x53, 0x63,
+	0x72, 0x69, 0x70, 0x12, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+	0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+	0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53,
+	0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0f, 0x50,
+	0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x53, 0x63, 0x72, 0x69, 0x70, 0x12, 0x22,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x73,
+	0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x53, 0x63, 0x72, 0x69, 0x70, 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, 0x47, 0x0a, 0x13,
+	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x4c, 0x6f, 0x6f, 0x6b, 0x42,
+	0x61, 0x63, 0x6b, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+	0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x15, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x49,
+	0x6e, 0x66, 0x6f, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x10, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52,
+	0x65, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x72, 0x69, 0x70, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x72, 0x69,
+	0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63,
+	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
+	0x49, 0x6e, 0x66, 0x6f, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+	0x53, 0x63, 0x72, 0x69, 0x70, 0x42, 0x79, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44, 0x12,
+	0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72,
+	0x73, 0x6f, 0x6e, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
+	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
+	0x74, 0x79, 0x22, 0x00, 0x42, 0x40, 0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x63, 0x72, 0x69,
+	0x70, 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, 0x73, 0x63, 0x72, 0x69, 0x70,
+	0x3b, 0x73, 0x63, 0x72, 0x69, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var file_scrip_proto_goTypes = []interface{}{
+	(*common.CreateScripRequest)(nil),     // 0: api.common.CreateScripRequest
+	(*common.DeleteScripRequest)(nil),     // 1: api.common.DeleteScripRequest
+	(*common.FindScripRequest)(nil),       // 2: api.common.FindScripRequest
+	(*common.FindOtherScripRequest)(nil),  // 3: api.common.FindOtherScripRequest
+	(*common.PersonLookScripRequest)(nil), // 4: api.common.PersonLookScripRequest
+	(*common.PersonParam)(nil),            // 5: api.common.PersonParam
+	(*common.ReplyScripRequest)(nil),      // 6: api.common.ReplyScripRequest
+	(*common.PersonIDParam)(nil),          // 7: api.common.PersonIDParam
+	(*common.ScripID)(nil),                // 8: api.common.ScripID
+	(*emptypb.Empty)(nil),                 // 9: google.protobuf.Empty
+	(*common.ScripReply)(nil),             // 10: api.common.ScripReply
+	(*common.ScripInfo)(nil),              // 11: api.common.ScripInfo
+	(*common.ChatRecordInfo)(nil),         // 12: api.common.ChatRecordInfo
+}
+var file_scrip_proto_depIdxs = []int32{
+	0,  // 0: api.scrip.Scrip.CreateScrip:input_type -> api.common.CreateScripRequest
+	1,  // 1: api.scrip.Scrip.DeleteScrip:input_type -> api.common.DeleteScripRequest
+	2,  // 2: api.scrip.Scrip.FindMyScrip:input_type -> api.common.FindScripRequest
+	3,  // 3: api.scrip.Scrip.FindOtherScrip:input_type -> api.common.FindOtherScripRequest
+	2,  // 4: api.scrip.Scrip.FindRecommendScrip:input_type -> api.common.FindScripRequest
+	4,  // 5: api.scrip.Scrip.PersonLookScrip:input_type -> api.common.PersonLookScripRequest
+	5,  // 6: api.scrip.Scrip.PersonClickLookBack:input_type -> api.common.PersonParam
+	6,  // 7: api.scrip.Scrip.PersonReplyScrip:input_type -> api.common.ReplyScripRequest
+	7,  // 8: api.scrip.Scrip.DeleteScripByPersonID:input_type -> api.common.PersonIDParam
+	8,  // 9: api.scrip.Scrip.CreateScrip:output_type -> api.common.ScripID
+	9,  // 10: api.scrip.Scrip.DeleteScrip:output_type -> google.protobuf.Empty
+	10, // 11: api.scrip.Scrip.FindMyScrip:output_type -> api.common.ScripReply
+	10, // 12: api.scrip.Scrip.FindOtherScrip:output_type -> api.common.ScripReply
+	10, // 13: api.scrip.Scrip.FindRecommendScrip:output_type -> api.common.ScripReply
+	9,  // 14: api.scrip.Scrip.PersonLookScrip:output_type -> google.protobuf.Empty
+	11, // 15: api.scrip.Scrip.PersonClickLookBack:output_type -> api.common.ScripInfo
+	12, // 16: api.scrip.Scrip.PersonReplyScrip:output_type -> api.common.ChatRecordInfo
+	9,  // 17: api.scrip.Scrip.DeleteScripByPersonID:output_type -> google.protobuf.Empty
+	9,  // [9:18] is the sub-list for method output_type
+	0,  // [0:9] 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
+}
+
+func init() { file_scrip_proto_init() }
+func file_scrip_proto_init() {
+	if File_scrip_proto != nil {
+		return
+	}
+	type x struct{}
+	out := protoimpl.TypeBuilder{
+		File: protoimpl.DescBuilder{
+			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+			RawDescriptor: file_scrip_proto_rawDesc,
+			NumEnums:      0,
+			NumMessages:   0,
+			NumExtensions: 0,
+			NumServices:   1,
+		},
+		GoTypes:           file_scrip_proto_goTypes,
+		DependencyIndexes: file_scrip_proto_depIdxs,
+	}.Build()
+	File_scrip_proto = out.File
+	file_scrip_proto_rawDesc = nil
+	file_scrip_proto_goTypes = nil
+	file_scrip_proto_depIdxs = nil
+}

+ 33 - 0
api/scrip/scrip.proto

@@ -0,0 +1,33 @@
+syntax = "proto3";
+
+package api.scrip;
+
+//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/scrip;scrip";
+option java_multiple_files = true;
+option java_package = "api.scrip";
+
+service Scrip {
+  // 创建纸条
+  rpc CreateScrip (common.CreateScripRequest) returns (common.ScripID){};
+  // 删除纸条
+  rpc DeleteScrip (common.DeleteScripRequest) returns (google.protobuf.Empty){};
+  // 查询自己的小纸条
+  rpc FindMyScrip (common.FindScripRequest) returns (common.ScripReply){};
+  // 查询别人的小纸条
+  rpc FindOtherScrip (common.FindOtherScripRequest) returns (common.ScripReply){};
+  // 查询随机纸条列表
+  rpc FindRecommendScrip (common.FindScripRequest) returns (common.ScripReply){};
+  // 用户查看纸条
+  rpc PersonLookScrip (common.PersonLookScripRequest) returns (google.protobuf.Empty){};
+  // 用户点击回看
+  rpc PersonClickLookBack (common.PersonParam) returns (common.ScripInfo){};
+  // 回复小纸条
+  rpc PersonReplyScrip (common.ReplyScripRequest) returns (common.ChatRecordInfo){};
+  // 用户被拉黑后删除精选中的小纸条
+  rpc DeleteScripByPersonID (common.PersonIDParam) returns (google.protobuf.Empty){};
+}

+ 409 - 0
api/scrip/scrip_grpc.pb.go

@@ -0,0 +1,409 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+
+package scrip
+
+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"
+	emptypb "google.golang.org/protobuf/types/known/emptypb"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+// ScripClient is the client API for Scrip service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type ScripClient interface {
+	// 创建纸条
+	CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error)
+	// 删除纸条
+	DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 查询自己的小纸条
+	FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
+	// 查询别人的小纸条
+	FindOtherScrip(ctx context.Context, in *common.FindOtherScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
+	// 查询随机纸条列表
+	FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
+	// 用户查看纸条
+	PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 用户点击回看
+	PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error)
+	// 回复小纸条
+	PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error)
+	// 用户被拉黑后删除精选中的小纸条
+	DeleteScripByPersonID(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
+}
+
+type scripClient struct {
+	cc grpc.ClientConnInterface
+}
+
+func NewScripClient(cc grpc.ClientConnInterface) ScripClient {
+	return &scripClient{cc}
+}
+
+func (c *scripClient) CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error) {
+	out := new(common.ScripID)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/CreateScrip", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *scripClient) DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/DeleteScrip", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *scripClient) FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
+	out := new(common.ScripReply)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/FindMyScrip", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *scripClient) FindOtherScrip(ctx context.Context, in *common.FindOtherScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
+	out := new(common.ScripReply)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/FindOtherScrip", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *scripClient) FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
+	out := new(common.ScripReply)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/FindRecommendScrip", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *scripClient) PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/PersonLookScrip", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *scripClient) PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error) {
+	out := new(common.ScripInfo)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/PersonClickLookBack", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *scripClient) PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error) {
+	out := new(common.ChatRecordInfo)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/PersonReplyScrip", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *scripClient) DeleteScripByPersonID(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.scrip.Scrip/DeleteScripByPersonID", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+// ScripServer is the server API for Scrip service.
+// All implementations must embed UnimplementedScripServer
+// for forward compatibility
+type ScripServer interface {
+	// 创建纸条
+	CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error)
+	// 删除纸条
+	DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error)
+	// 查询自己的小纸条
+	FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
+	// 查询别人的小纸条
+	FindOtherScrip(context.Context, *common.FindOtherScripRequest) (*common.ScripReply, error)
+	// 查询随机纸条列表
+	FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
+	// 用户查看纸条
+	PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error)
+	// 用户点击回看
+	PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error)
+	// 回复小纸条
+	PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error)
+	// 用户被拉黑后删除精选中的小纸条
+	DeleteScripByPersonID(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
+	mustEmbedUnimplementedScripServer()
+}
+
+// UnimplementedScripServer must be embedded to have forward compatible implementations.
+type UnimplementedScripServer struct {
+}
+
+func (UnimplementedScripServer) CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method CreateScrip not implemented")
+}
+func (UnimplementedScripServer) DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method DeleteScrip not implemented")
+}
+func (UnimplementedScripServer) FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindMyScrip not implemented")
+}
+func (UnimplementedScripServer) FindOtherScrip(context.Context, *common.FindOtherScripRequest) (*common.ScripReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindOtherScrip not implemented")
+}
+func (UnimplementedScripServer) FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindRecommendScrip not implemented")
+}
+func (UnimplementedScripServer) PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PersonLookScrip not implemented")
+}
+func (UnimplementedScripServer) PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PersonClickLookBack not implemented")
+}
+func (UnimplementedScripServer) PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PersonReplyScrip not implemented")
+}
+func (UnimplementedScripServer) DeleteScripByPersonID(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method DeleteScripByPersonID not implemented")
+}
+func (UnimplementedScripServer) mustEmbedUnimplementedScripServer() {}
+
+// UnsafeScripServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to ScripServer will
+// result in compilation errors.
+type UnsafeScripServer interface {
+	mustEmbedUnimplementedScripServer()
+}
+
+func RegisterScripServer(s grpc.ServiceRegistrar, srv ScripServer) {
+	s.RegisterService(&Scrip_ServiceDesc, srv)
+}
+
+func _Scrip_CreateScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.CreateScripRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).CreateScrip(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/CreateScrip",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).CreateScrip(ctx, req.(*common.CreateScripRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Scrip_DeleteScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.DeleteScripRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).DeleteScrip(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/DeleteScrip",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).DeleteScrip(ctx, req.(*common.DeleteScripRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Scrip_FindMyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.FindScripRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).FindMyScrip(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/FindMyScrip",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).FindMyScrip(ctx, req.(*common.FindScripRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Scrip_FindOtherScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.FindOtherScripRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).FindOtherScrip(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/FindOtherScrip",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).FindOtherScrip(ctx, req.(*common.FindOtherScripRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Scrip_FindRecommendScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.FindScripRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).FindRecommendScrip(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/FindRecommendScrip",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).FindRecommendScrip(ctx, req.(*common.FindScripRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Scrip_PersonLookScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.PersonLookScripRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).PersonLookScrip(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/PersonLookScrip",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).PersonLookScrip(ctx, req.(*common.PersonLookScripRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Scrip_PersonClickLookBack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.PersonParam)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).PersonClickLookBack(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/PersonClickLookBack",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).PersonClickLookBack(ctx, req.(*common.PersonParam))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Scrip_PersonReplyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.ReplyScripRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).PersonReplyScrip(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/PersonReplyScrip",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).PersonReplyScrip(ctx, req.(*common.ReplyScripRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Scrip_DeleteScripByPersonID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.PersonIDParam)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ScripServer).DeleteScripByPersonID(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.scrip.Scrip/DeleteScripByPersonID",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ScripServer).DeleteScripByPersonID(ctx, req.(*common.PersonIDParam))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+// Scrip_ServiceDesc is the grpc.ServiceDesc for Scrip service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var Scrip_ServiceDesc = grpc.ServiceDesc{
+	ServiceName: "api.scrip.Scrip",
+	HandlerType: (*ScripServer)(nil),
+	Methods: []grpc.MethodDesc{
+		{
+			MethodName: "CreateScrip",
+			Handler:    _Scrip_CreateScrip_Handler,
+		},
+		{
+			MethodName: "DeleteScrip",
+			Handler:    _Scrip_DeleteScrip_Handler,
+		},
+		{
+			MethodName: "FindMyScrip",
+			Handler:    _Scrip_FindMyScrip_Handler,
+		},
+		{
+			MethodName: "FindOtherScrip",
+			Handler:    _Scrip_FindOtherScrip_Handler,
+		},
+		{
+			MethodName: "FindRecommendScrip",
+			Handler:    _Scrip_FindRecommendScrip_Handler,
+		},
+		{
+			MethodName: "PersonLookScrip",
+			Handler:    _Scrip_PersonLookScrip_Handler,
+		},
+		{
+			MethodName: "PersonClickLookBack",
+			Handler:    _Scrip_PersonClickLookBack_Handler,
+		},
+		{
+			MethodName: "PersonReplyScrip",
+			Handler:    _Scrip_PersonReplyScrip_Handler,
+		},
+		{
+			MethodName: "DeleteScripByPersonID",
+			Handler:    _Scrip_DeleteScripByPersonID_Handler,
+		},
+	},
+	Streams:  []grpc.StreamDesc{},
+	Metadata: "scrip.proto",
+}