|
@@ -1,7 +1,7 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
// protoc-gen-go v1.25.0
|
|
|
-// protoc v3.15.1
|
|
|
+// protoc v3.15.5
|
|
|
// source: userlib.proto
|
|
|
|
|
|
package userlib
|
|
@@ -758,78 +758,6 @@ func (x *UserDoc) GetDocName() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-//回收站操作1进入回收站2永久删除3删除改为未删除
|
|
|
-type UserRecoveryRequest struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
|
|
|
- DocId string `protobuf:"bytes,2,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
|
|
|
- Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` //记录标识
|
|
|
- UserDocStatus UserDocStatus `protobuf:"varint,4,opt,name=userDocStatus,proto3,enum=userlib.UserDocStatus" json:"userDocStatus,omitempty"` //记录状态
|
|
|
-}
|
|
|
-
|
|
|
-func (x *UserRecoveryRequest) Reset() {
|
|
|
- *x = UserRecoveryRequest{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_userlib_proto_msgTypes[9]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-func (x *UserRecoveryRequest) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-func (*UserRecoveryRequest) ProtoMessage() {}
|
|
|
-
|
|
|
-func (x *UserRecoveryRequest) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_userlib_proto_msgTypes[9]
|
|
|
- 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 UserRecoveryRequest.ProtoReflect.Descriptor instead.
|
|
|
-func (*UserRecoveryRequest) Descriptor() ([]byte, []int) {
|
|
|
- return file_userlib_proto_rawDescGZIP(), []int{9}
|
|
|
-}
|
|
|
-
|
|
|
-func (x *UserRecoveryRequest) GetUserId() string {
|
|
|
- if x != nil {
|
|
|
- return x.UserId
|
|
|
- }
|
|
|
- return ""
|
|
|
-}
|
|
|
-
|
|
|
-func (x *UserRecoveryRequest) GetDocId() string {
|
|
|
- if x != nil {
|
|
|
- return x.DocId
|
|
|
- }
|
|
|
- return ""
|
|
|
-}
|
|
|
-
|
|
|
-func (x *UserRecoveryRequest) GetId() string {
|
|
|
- if x != nil {
|
|
|
- return x.Id
|
|
|
- }
|
|
|
- return ""
|
|
|
-}
|
|
|
-
|
|
|
-func (x *UserRecoveryRequest) GetUserDocStatus() UserDocStatus {
|
|
|
- if x != nil {
|
|
|
- return x.UserDocStatus
|
|
|
- }
|
|
|
- return UserDocStatus_Normal
|
|
|
-}
|
|
|
-
|
|
|
var File_userlib_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_userlib_proto_rawDesc = []byte{
|
|
@@ -897,57 +825,38 @@ var file_userlib_proto_rawDesc = []byte{
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d,
|
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
- 0x22, 0x91, 0x01, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72,
|
|
|
- 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
|
|
|
- 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
|
|
|
- 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
|
|
|
- 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3c, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f,
|
|
|
- 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e,
|
|
|
- 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x53,
|
|
|
- 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x53, 0x74,
|
|
|
- 0x61, 0x74, 0x75, 0x73, 0x2a, 0x3c, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43,
|
|
|
- 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x65, 0x6c, 0x66, 0x55,
|
|
|
- 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x6f, 0x77, 0x6e, 0x6c,
|
|
|
- 0x6f, 0x61, 0x64, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
|
|
|
- 0x10, 0x02, 0x2a, 0x4c, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c,
|
|
|
- 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x6f, 0x72, 0x64, 0x10, 0x00, 0x12,
|
|
|
- 0x07, 0x0a, 0x03, 0x50, 0x44, 0x46, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x58, 0x43, 0x45,
|
|
|
- 0x4c, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x50, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03,
|
|
|
- 0x54, 0x58, 0x54, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x10, 0x05,
|
|
|
- 0x2a, 0x43, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75,
|
|
|
- 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x0f, 0x0a,
|
|
|
- 0x0b, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x01, 0x12, 0x15,
|
|
|
- 0x0a, 0x11, 0x50, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x44, 0x65, 0x6c,
|
|
|
- 0x65, 0x74, 0x65, 0x10, 0x02, 0x32, 0xb6, 0x03, 0x0a, 0x07, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69,
|
|
|
- 0x62, 0x12, 0x3f, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x12, 0x18, 0x2e,
|
|
|
- 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73,
|
|
|
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69,
|
|
|
- 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
- 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
|
|
|
- 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43,
|
|
|
- 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,
|
|
|
- 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c,
|
|
|
- 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x44,
|
|
|
- 0x6f, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c,
|
|
|
- 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71,
|
|
|
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55,
|
|
|
- 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
- 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12,
|
|
|
- 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
|
|
|
- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75,
|
|
|
- 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f,
|
|
|
- 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x44, 0x6f,
|
|
|
- 0x63, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72,
|
|
|
+ 0x2a, 0x3c, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67,
|
|
|
+ 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x65, 0x6c, 0x66, 0x55, 0x70, 0x6c, 0x6f, 0x61,
|
|
|
+ 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x10,
|
|
|
+ 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x4c,
|
|
|
+ 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70,
|
|
|
+ 0x65, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x6f, 0x72, 0x64, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50,
|
|
|
+ 0x44, 0x46, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x58, 0x43, 0x45, 0x4c, 0x10, 0x02, 0x12,
|
|
|
+ 0x07, 0x0a, 0x03, 0x50, 0x50, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x58, 0x54, 0x10,
|
|
|
+ 0x04, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x10, 0x05, 0x2a, 0x43, 0x0a, 0x0d,
|
|
|
+ 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a,
|
|
|
+ 0x06, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x6f, 0x67,
|
|
|
+ 0x69, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x65,
|
|
|
+ 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10,
|
|
|
+ 0x02, 0x32, 0xa2, 0x02, 0x0a, 0x07, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x62, 0x12, 0x3f, 0x0a,
|
|
|
+ 0x08, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x12, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72,
|
|
|
+ 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75,
|
|
|
+ 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73,
|
|
|
+ 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47,
|
|
|
+ 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x2e, 0x75,
|
|
|
+ 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65,
|
|
|
+ 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72,
|
|
|
0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52,
|
|
|
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62,
|
|
|
- 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70,
|
|
|
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x52, 0x65, 0x63, 0x79, 0x63,
|
|
|
- 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65,
|
|
|
- 0x72, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
- 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43,
|
|
|
- 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06,
|
|
|
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x44, 0x6f, 0x63, 0x44, 0x65,
|
|
|
+ 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55,
|
|
|
+ 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
+ 0x1a, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44,
|
|
|
+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a,
|
|
|
+ 0x0a, 0x44, 0x6f, 0x63, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x1b, 0x2e, 0x75, 0x73,
|
|
|
+ 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72,
|
|
|
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c,
|
|
|
+ 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -963,7 +872,7 @@ func file_userlib_proto_rawDescGZIP() []byte {
|
|
|
}
|
|
|
|
|
|
var file_userlib_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
|
|
-var file_userlib_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
|
+var file_userlib_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
var file_userlib_proto_goTypes = []interface{}{
|
|
|
(UserDocCategory)(0), // 0: userlib.UserDocCategory
|
|
|
(UserDocFileType)(0), // 1: userlib.UserDocFileType
|
|
@@ -977,31 +886,25 @@ var file_userlib_proto_goTypes = []interface{}{
|
|
|
(*UserDocsRequest)(nil), // 9: userlib.UserDocsRequest
|
|
|
(*UserDocsResponse)(nil), // 10: userlib.UserDocsResponse
|
|
|
(*UserDoc)(nil), // 11: userlib.UserDoc
|
|
|
- (*UserRecoveryRequest)(nil), // 12: userlib.UserRecoveryRequest
|
|
|
}
|
|
|
var file_userlib_proto_depIdxs = []int32{
|
|
|
0, // 0: userlib.UserCollectRequest.docCategory:type_name -> userlib.UserDocCategory
|
|
|
1, // 1: userlib.UserCollectRequest.docFileType:type_name -> userlib.UserDocFileType
|
|
|
0, // 2: userlib.UserDocsRequest.userDocCategory:type_name -> userlib.UserDocCategory
|
|
|
11, // 3: userlib.UserDocsResponse.docs:type_name -> userlib.UserDoc
|
|
|
- 2, // 4: userlib.UserRecoveryRequest.userDocStatus:type_name -> userlib.UserDocStatus
|
|
|
- 9, // 5: userlib.UserLib.UserDocs:input_type -> userlib.UserDocsRequest
|
|
|
- 3, // 6: userlib.UserLib.DocCollect:input_type -> userlib.UserCollectRequest
|
|
|
- 5, // 7: userlib.UserLib.DocDelete:input_type -> userlib.UserDeleteRequest
|
|
|
- 7, // 8: userlib.UserLib.DocRestore:input_type -> userlib.UserRestoreRequest
|
|
|
- 3, // 9: userlib.UserLib.DocDownload:input_type -> userlib.UserCollectRequest
|
|
|
- 12, // 10: userlib.UserLib.DocRecycle:input_type -> userlib.UserRecoveryRequest
|
|
|
- 10, // 11: userlib.UserLib.UserDocs:output_type -> userlib.UserDocsResponse
|
|
|
- 4, // 12: userlib.UserLib.DocCollect:output_type -> userlib.UserCollectResponse
|
|
|
- 6, // 13: userlib.UserLib.DocDelete:output_type -> userlib.UserDeleteResponse
|
|
|
- 8, // 14: userlib.UserLib.DocRestore:output_type -> userlib.UserRestoreResponse
|
|
|
- 4, // 15: userlib.UserLib.DocDownload:output_type -> userlib.UserCollectResponse
|
|
|
- 4, // 16: userlib.UserLib.DocRecycle:output_type -> userlib.UserCollectResponse
|
|
|
- 11, // [11:17] is the sub-list for method output_type
|
|
|
- 5, // [5:11] is the sub-list for method input_type
|
|
|
- 5, // [5:5] is the sub-list for extension type_name
|
|
|
- 5, // [5:5] is the sub-list for extension extendee
|
|
|
- 0, // [0:5] is the sub-list for field type_name
|
|
|
+ 9, // 4: userlib.UserLib.UserDocs:input_type -> userlib.UserDocsRequest
|
|
|
+ 3, // 5: userlib.UserLib.DocCollect:input_type -> userlib.UserCollectRequest
|
|
|
+ 5, // 6: userlib.UserLib.DocDelete:input_type -> userlib.UserDeleteRequest
|
|
|
+ 7, // 7: userlib.UserLib.DocRestore:input_type -> userlib.UserRestoreRequest
|
|
|
+ 10, // 8: userlib.UserLib.UserDocs:output_type -> userlib.UserDocsResponse
|
|
|
+ 4, // 9: userlib.UserLib.DocCollect:output_type -> userlib.UserCollectResponse
|
|
|
+ 6, // 10: userlib.UserLib.DocDelete:output_type -> userlib.UserDeleteResponse
|
|
|
+ 8, // 11: userlib.UserLib.DocRestore:output_type -> userlib.UserRestoreResponse
|
|
|
+ 8, // [8:12] is the sub-list for method output_type
|
|
|
+ 4, // [4:8] is the sub-list for method input_type
|
|
|
+ 4, // [4:4] is the sub-list for extension type_name
|
|
|
+ 4, // [4:4] is the sub-list for extension extendee
|
|
|
+ 0, // [0:4] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_userlib_proto_init() }
|
|
@@ -1118,18 +1021,6 @@ func file_userlib_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
- file_userlib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*UserRecoveryRequest); 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{
|
|
@@ -1137,7 +1028,7 @@ func file_userlib_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_userlib_proto_rawDesc,
|
|
|
NumEnums: 3,
|
|
|
- NumMessages: 10,
|
|
|
+ NumMessages: 9,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
@@ -1168,8 +1059,6 @@ type UserLibClient interface {
|
|
|
DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
|
|
|
DocDelete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
|
|
|
DocRestore(ctx context.Context, in *UserRestoreRequest, opts ...grpc.CallOption) (*UserRestoreResponse, error)
|
|
|
- DocDownload(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
|
|
|
- DocRecycle(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
|
|
|
}
|
|
|
|
|
|
type userLibClient struct {
|
|
@@ -1216,32 +1105,12 @@ func (c *userLibClient) DocRestore(ctx context.Context, in *UserRestoreRequest,
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *userLibClient) DocDownload(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
|
|
|
- out := new(UserCollectResponse)
|
|
|
- err := c.cc.Invoke(ctx, "/userlib.UserLib/DocDownload", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userLibClient) DocRecycle(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
|
|
|
- out := new(UserCollectResponse)
|
|
|
- err := c.cc.Invoke(ctx, "/userlib.UserLib/DocRecycle", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
// UserLibServer is the server API for UserLib service.
|
|
|
type UserLibServer interface {
|
|
|
UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error)
|
|
|
DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
|
|
|
DocDelete(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error)
|
|
|
DocRestore(context.Context, *UserRestoreRequest) (*UserRestoreResponse, error)
|
|
|
- DocDownload(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
|
|
|
- DocRecycle(context.Context, *UserRecoveryRequest) (*UserCollectResponse, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedUserLibServer can be embedded to have forward compatible implementations.
|
|
@@ -1260,12 +1129,6 @@ func (*UnimplementedUserLibServer) DocDelete(context.Context, *UserDeleteRequest
|
|
|
func (*UnimplementedUserLibServer) DocRestore(context.Context, *UserRestoreRequest) (*UserRestoreResponse, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DocRestore not implemented")
|
|
|
}
|
|
|
-func (*UnimplementedUserLibServer) DocDownload(context.Context, *UserCollectRequest) (*UserCollectResponse, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method DocDownload not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedUserLibServer) DocRecycle(context.Context, *UserRecoveryRequest) (*UserCollectResponse, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method DocRecycle not implemented")
|
|
|
-}
|
|
|
|
|
|
func RegisterUserLibServer(s *grpc.Server, srv UserLibServer) {
|
|
|
s.RegisterService(&_UserLib_serviceDesc, srv)
|
|
@@ -1343,42 +1206,6 @@ func _UserLib_DocRestore_Handler(srv interface{}, ctx context.Context, dec func(
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _UserLib_DocDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(UserCollectRequest)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserLibServer).DocDownload(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/userlib.UserLib/DocDownload",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserLibServer).DocDownload(ctx, req.(*UserCollectRequest))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserLib_DocRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(UserRecoveryRequest)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserLibServer).DocRecycle(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/userlib.UserLib/DocRecycle",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserLibServer).DocRecycle(ctx, req.(*UserRecoveryRequest))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
var _UserLib_serviceDesc = grpc.ServiceDesc{
|
|
|
ServiceName: "userlib.UserLib",
|
|
|
HandlerType: (*UserLibServer)(nil),
|
|
@@ -1399,14 +1226,6 @@ var _UserLib_serviceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "DocRestore",
|
|
|
Handler: _UserLib_DocRestore_Handler,
|
|
|
},
|
|
|
- {
|
|
|
- MethodName: "DocDownload",
|
|
|
- Handler: _UserLib_DocDownload_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "DocRecycle",
|
|
|
- Handler: _UserLib_DocRecycle_Handler,
|
|
|
- },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "userlib.proto",
|