|
@@ -1,7 +1,7 @@
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// versions:
|
|
// protoc-gen-go v1.25.0
|
|
// protoc-gen-go v1.25.0
|
|
-// protoc v3.15.5
|
|
|
|
|
|
+// protoc v3.15.1
|
|
// source: userlib.proto
|
|
// source: userlib.proto
|
|
|
|
|
|
package userlib
|
|
package userlib
|
|
@@ -637,9 +637,8 @@ type UserDocsResponse struct {
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
|
|
|
|
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
|
|
|
|
- Docs []*UserDoc `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //用户文档列表
|
|
|
|
|
|
+ Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
|
|
|
|
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
|
|
}
|
|
}
|
|
|
|
|
|
func (x *UserDocsResponse) Reset() {
|
|
func (x *UserDocsResponse) Reset() {
|
|
@@ -688,25 +687,20 @@ func (x *UserDocsResponse) GetMessage() string {
|
|
return ""
|
|
return ""
|
|
}
|
|
}
|
|
|
|
|
|
-func (x *UserDocsResponse) GetDocs() []*UserDoc {
|
|
|
|
- if x != nil {
|
|
|
|
- return x.Docs
|
|
|
|
- }
|
|
|
|
- return nil
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-type UserDoc struct {
|
|
|
|
|
|
+//回收站操作1进入回收站2永久删除3删除改为未删除
|
|
|
|
+type UserRecoveryRequest struct {
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
|
|
- DocId string `protobuf:"bytes,2,opt,name=docId,proto3" json:"docId,omitempty"`
|
|
|
|
- DocName string `protobuf:"bytes,3,opt,name=docName,proto3" json:"docName,omitempty"`
|
|
|
|
|
|
+ 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 *UserDoc) Reset() {
|
|
|
|
- *x = UserDoc{}
|
|
|
|
|
|
+func (x *UserRecoveryRequest) Reset() {
|
|
|
|
+ *x = UserRecoveryRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_userlib_proto_msgTypes[8]
|
|
mi := &file_userlib_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -714,13 +708,13 @@ func (x *UserDoc) Reset() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-func (x *UserDoc) String() string {
|
|
|
|
|
|
+func (x *UserRecoveryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
}
|
|
|
|
|
|
-func (*UserDoc) ProtoMessage() {}
|
|
|
|
|
|
+func (*UserRecoveryRequest) ProtoMessage() {}
|
|
|
|
|
|
-func (x *UserDoc) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
+func (x *UserRecoveryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_userlib_proto_msgTypes[8]
|
|
mi := &file_userlib_proto_msgTypes[8]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -732,32 +726,39 @@ func (x *UserDoc) ProtoReflect() protoreflect.Message {
|
|
return mi.MessageOf(x)
|
|
return mi.MessageOf(x)
|
|
}
|
|
}
|
|
|
|
|
|
-// Deprecated: Use UserDoc.ProtoReflect.Descriptor instead.
|
|
|
|
-func (*UserDoc) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
+// Deprecated: Use UserRecoveryRequest.ProtoReflect.Descriptor instead.
|
|
|
|
+func (*UserRecoveryRequest) Descriptor() ([]byte, []int) {
|
|
return file_userlib_proto_rawDescGZIP(), []int{8}
|
|
return file_userlib_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
}
|
|
|
|
|
|
-func (x *UserDoc) GetUserId() string {
|
|
|
|
|
|
+func (x *UserRecoveryRequest) GetUserId() string {
|
|
if x != nil {
|
|
if x != nil {
|
|
return x.UserId
|
|
return x.UserId
|
|
}
|
|
}
|
|
return ""
|
|
return ""
|
|
}
|
|
}
|
|
|
|
|
|
-func (x *UserDoc) GetDocId() string {
|
|
|
|
|
|
+func (x *UserRecoveryRequest) GetDocId() string {
|
|
if x != nil {
|
|
if x != nil {
|
|
return x.DocId
|
|
return x.DocId
|
|
}
|
|
}
|
|
return ""
|
|
return ""
|
|
}
|
|
}
|
|
|
|
|
|
-func (x *UserDoc) GetDocName() string {
|
|
|
|
|
|
+func (x *UserRecoveryRequest) GetId() string {
|
|
if x != nil {
|
|
if x != nil {
|
|
- return x.DocName
|
|
|
|
|
|
+ return x.Id
|
|
}
|
|
}
|
|
return ""
|
|
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 protoreflect.FileDescriptor
|
|
|
|
|
|
var file_userlib_proto_rawDesc = []byte{
|
|
var file_userlib_proto_rawDesc = []byte{
|
|
@@ -813,50 +814,61 @@ var file_userlib_proto_rawDesc = []byte{
|
|
0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x75, 0x73, 0x65,
|
|
0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x75, 0x73, 0x65,
|
|
0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65,
|
|
0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65,
|
|
0x67, 0x6f, 0x72, 0x79, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74,
|
|
0x67, 0x6f, 0x72, 0x79, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74,
|
|
- 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x66, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63,
|
|
|
|
|
|
+ 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x40, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63,
|
|
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
|
|
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
|
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
|
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
|
|
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x18,
|
|
|
|
- 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e,
|
|
|
|
- 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x52, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x22, 0x51, 0x0a,
|
|
|
|
- 0x07, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 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, 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,
|
|
|
|
- 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, 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,
|
|
|
|
|
|
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 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, 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,
|
|
}
|
|
}
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -885,23 +897,27 @@ var file_userlib_proto_goTypes = []interface{}{
|
|
(*UserRestoreResponse)(nil), // 8: userlib.UserRestoreResponse
|
|
(*UserRestoreResponse)(nil), // 8: userlib.UserRestoreResponse
|
|
(*UserDocsRequest)(nil), // 9: userlib.UserDocsRequest
|
|
(*UserDocsRequest)(nil), // 9: userlib.UserDocsRequest
|
|
(*UserDocsResponse)(nil), // 10: userlib.UserDocsResponse
|
|
(*UserDocsResponse)(nil), // 10: userlib.UserDocsResponse
|
|
- (*UserDoc)(nil), // 11: userlib.UserDoc
|
|
|
|
|
|
+ (*UserRecoveryRequest)(nil), // 11: userlib.UserRecoveryRequest
|
|
}
|
|
}
|
|
var file_userlib_proto_depIdxs = []int32{
|
|
var file_userlib_proto_depIdxs = []int32{
|
|
0, // 0: userlib.UserCollectRequest.docCategory:type_name -> userlib.UserDocCategory
|
|
0, // 0: userlib.UserCollectRequest.docCategory:type_name -> userlib.UserDocCategory
|
|
1, // 1: userlib.UserCollectRequest.docFileType:type_name -> userlib.UserDocFileType
|
|
1, // 1: userlib.UserCollectRequest.docFileType:type_name -> userlib.UserDocFileType
|
|
0, // 2: userlib.UserDocsRequest.userDocCategory:type_name -> userlib.UserDocCategory
|
|
0, // 2: userlib.UserDocsRequest.userDocCategory:type_name -> userlib.UserDocCategory
|
|
- 11, // 3: userlib.UserDocsResponse.docs:type_name -> userlib.UserDoc
|
|
|
|
|
|
+ 2, // 3: userlib.UserRecoveryRequest.userDocStatus:type_name -> userlib.UserDocStatus
|
|
9, // 4: userlib.UserLib.UserDocs:input_type -> userlib.UserDocsRequest
|
|
9, // 4: userlib.UserLib.UserDocs:input_type -> userlib.UserDocsRequest
|
|
3, // 5: userlib.UserLib.DocCollect:input_type -> userlib.UserCollectRequest
|
|
3, // 5: userlib.UserLib.DocCollect:input_type -> userlib.UserCollectRequest
|
|
5, // 6: userlib.UserLib.DocDelete:input_type -> userlib.UserDeleteRequest
|
|
5, // 6: userlib.UserLib.DocDelete:input_type -> userlib.UserDeleteRequest
|
|
7, // 7: userlib.UserLib.DocRestore:input_type -> userlib.UserRestoreRequest
|
|
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
|
|
|
|
|
|
+ 3, // 8: userlib.UserLib.DocDownload:input_type -> userlib.UserCollectRequest
|
|
|
|
+ 11, // 9: userlib.UserLib.DocRecycle:input_type -> userlib.UserRecoveryRequest
|
|
|
|
+ 10, // 10: userlib.UserLib.UserDocs:output_type -> userlib.UserDocsResponse
|
|
|
|
+ 4, // 11: userlib.UserLib.DocCollect:output_type -> userlib.UserCollectResponse
|
|
|
|
+ 6, // 12: userlib.UserLib.DocDelete:output_type -> userlib.UserDeleteResponse
|
|
|
|
+ 8, // 13: userlib.UserLib.DocRestore:output_type -> userlib.UserRestoreResponse
|
|
|
|
+ 4, // 14: userlib.UserLib.DocDownload:output_type -> userlib.UserCollectResponse
|
|
|
|
+ 4, // 15: userlib.UserLib.DocRecycle:output_type -> userlib.UserCollectResponse
|
|
|
|
+ 10, // [10:16] is the sub-list for method output_type
|
|
|
|
+ 4, // [4:10] 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 type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
0, // [0:4] is the sub-list for field type_name
|
|
@@ -1010,7 +1026,7 @@ func file_userlib_proto_init() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
file_userlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
file_userlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
- switch v := v.(*UserDoc); i {
|
|
|
|
|
|
+ switch v := v.(*UserRecoveryRequest); i {
|
|
case 0:
|
|
case 0:
|
|
return &v.state
|
|
return &v.state
|
|
case 1:
|
|
case 1:
|
|
@@ -1059,6 +1075,8 @@ type UserLibClient interface {
|
|
DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
|
|
DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
|
|
DocDelete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
|
|
DocDelete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
|
|
DocRestore(ctx context.Context, in *UserRestoreRequest, opts ...grpc.CallOption) (*UserRestoreResponse, 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 {
|
|
type userLibClient struct {
|
|
@@ -1105,12 +1123,32 @@ func (c *userLibClient) DocRestore(ctx context.Context, in *UserRestoreRequest,
|
|
return out, nil
|
|
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.
|
|
// UserLibServer is the server API for UserLib service.
|
|
type UserLibServer interface {
|
|
type UserLibServer interface {
|
|
UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error)
|
|
UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error)
|
|
DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
|
|
DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
|
|
DocDelete(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error)
|
|
DocDelete(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error)
|
|
DocRestore(context.Context, *UserRestoreRequest) (*UserRestoreResponse, 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.
|
|
// UnimplementedUserLibServer can be embedded to have forward compatible implementations.
|
|
@@ -1129,6 +1167,12 @@ func (*UnimplementedUserLibServer) DocDelete(context.Context, *UserDeleteRequest
|
|
func (*UnimplementedUserLibServer) DocRestore(context.Context, *UserRestoreRequest) (*UserRestoreResponse, error) {
|
|
func (*UnimplementedUserLibServer) DocRestore(context.Context, *UserRestoreRequest) (*UserRestoreResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DocRestore not implemented")
|
|
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) {
|
|
func RegisterUserLibServer(s *grpc.Server, srv UserLibServer) {
|
|
s.RegisterService(&_UserLib_serviceDesc, srv)
|
|
s.RegisterService(&_UserLib_serviceDesc, srv)
|
|
@@ -1206,6 +1250,42 @@ func _UserLib_DocRestore_Handler(srv interface{}, ctx context.Context, dec func(
|
|
return interceptor(ctx, in, info, handler)
|
|
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{
|
|
var _UserLib_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "userlib.UserLib",
|
|
ServiceName: "userlib.UserLib",
|
|
HandlerType: (*UserLibServer)(nil),
|
|
HandlerType: (*UserLibServer)(nil),
|
|
@@ -1226,6 +1306,14 @@ var _UserLib_serviceDesc = grpc.ServiceDesc{
|
|
MethodName: "DocRestore",
|
|
MethodName: "DocRestore",
|
|
Handler: _UserLib_DocRestore_Handler,
|
|
Handler: _UserLib_DocRestore_Handler,
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ MethodName: "DocDownload",
|
|
|
|
+ Handler: _UserLib_DocDownload_Handler,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ MethodName: "DocRecycle",
|
|
|
|
+ Handler: _UserLib_DocRecycle_Handler,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "userlib.proto",
|
|
Metadata: "userlib.proto",
|