Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterFilecenterServer(s grpc.ServiceRegistrar, srv FilecenterServer)
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetCreatedAt() int64
- func (x *File) GetDeletedAt() int64
- func (x *File) GetId() int64
- func (x *File) GetName() string
- func (x *File) GetParentId() int64
- func (x *File) GetPath() string
- func (x *File) GetShareLink() string
- func (x *File) GetSize() string
- func (x *File) GetType() string
- func (x *File) GetUpdatedAt() int64
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- type FileCreateReq
- func (*FileCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileCreateReq) GetName() string
- func (x *FileCreateReq) GetParentId() int64
- func (x *FileCreateReq) GetUserId() int64
- func (*FileCreateReq) ProtoMessage()
- func (x *FileCreateReq) ProtoReflect() protoreflect.Message
- func (x *FileCreateReq) Reset()
- func (x *FileCreateReq) String() string
- type FileCreateResp
- type FileDeletionReq
- type FileDeletionResp
- type FileDetailsReq
- type FileDetailsResp
- func (*FileDetailsResp) Descriptor() ([]byte, []int)deprecated
- func (x *FileDetailsResp) GetError() string
- func (x *FileDetailsResp) GetName() string
- func (x *FileDetailsResp) GetPath() string
- func (x *FileDetailsResp) GetSize() string
- func (x *FileDetailsResp) GetTime() string
- func (x *FileDetailsResp) GetType() string
- func (*FileDetailsResp) ProtoMessage()
- func (x *FileDetailsResp) ProtoReflect() protoreflect.Message
- func (x *FileDetailsResp) Reset()
- func (x *FileDetailsResp) String() string
- type FileDownloadReq
- func (*FileDownloadReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileDownloadReq) GetId() int64
- func (x *FileDownloadReq) GetName() string
- func (x *FileDownloadReq) GetType() string
- func (*FileDownloadReq) ProtoMessage()
- func (x *FileDownloadReq) ProtoReflect() protoreflect.Message
- func (x *FileDownloadReq) Reset()
- func (x *FileDownloadReq) String() string
- type FileDownloadResp
- func (*FileDownloadResp) Descriptor() ([]byte, []int)deprecated
- func (x *FileDownloadResp) GetError() string
- func (x *FileDownloadResp) GetFlag() string
- func (*FileDownloadResp) ProtoMessage()
- func (x *FileDownloadResp) ProtoReflect() protoreflect.Message
- func (x *FileDownloadResp) Reset()
- func (x *FileDownloadResp) String() string
- type FileIn
- func (*FileIn) Descriptor() ([]byte, []int)deprecated
- func (x *FileIn) GetName() string
- func (x *FileIn) GetPath() string
- func (x *FileIn) GetShareLink() string
- func (x *FileIn) GetSize() string
- func (x *FileIn) GetType() string
- func (x *FileIn) GetUpdatedAt() int64
- func (*FileIn) ProtoMessage()
- func (x *FileIn) ProtoReflect() protoreflect.Message
- func (x *FileIn) Reset()
- func (x *FileIn) String() string
- type FileListReq
- func (*FileListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileListReq) GetASC() bool
- func (x *FileListReq) GetField() string
- func (x *FileListReq) GetId() int64
- func (x *FileListReq) GetPage() int64
- func (x *FileListReq) GetSize() int64
- func (*FileListReq) ProtoMessage()
- func (x *FileListReq) ProtoReflect() protoreflect.Message
- func (x *FileListReq) Reset()
- func (x *FileListReq) String() string
- type FileListResp
- func (*FileListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FileListResp) GetCount() int64
- func (x *FileListResp) GetError() string
- func (x *FileListResp) GetList() []*FileIn
- func (*FileListResp) ProtoMessage()
- func (x *FileListResp) ProtoReflect() protoreflect.Message
- func (x *FileListResp) Reset()
- func (x *FileListResp) String() string
- type FileMoveReq
- func (*FileMoveReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileMoveReq) GetId() int64
- func (x *FileMoveReq) GetLastParentId() int64
- func (x *FileMoveReq) GetPreParentId() int64
- func (*FileMoveReq) ProtoMessage()
- func (x *FileMoveReq) ProtoReflect() protoreflect.Message
- func (x *FileMoveReq) Reset()
- func (x *FileMoveReq) String() string
- type FileMoveResp
- type FileNameUpdateReq
- func (*FileNameUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileNameUpdateReq) GetId() int64
- func (x *FileNameUpdateReq) GetName() string
- func (*FileNameUpdateReq) ProtoMessage()
- func (x *FileNameUpdateReq) ProtoReflect() protoreflect.Message
- func (x *FileNameUpdateReq) Reset()
- func (x *FileNameUpdateReq) String() string
- type FileNameUpdateResp
- func (*FileNameUpdateResp) Descriptor() ([]byte, []int)deprecated
- func (x *FileNameUpdateResp) GetError() string
- func (*FileNameUpdateResp) ProtoMessage()
- func (x *FileNameUpdateResp) ProtoReflect() protoreflect.Message
- func (x *FileNameUpdateResp) Reset()
- func (x *FileNameUpdateResp) String() string
- type FilePrefix
- func (*FilePrefix) Descriptor() ([]byte, []int)deprecated
- func (x *FilePrefix) GetId() int64
- func (x *FilePrefix) GetParentId() int64
- func (x *FilePrefix) GetType() string
- func (*FilePrefix) ProtoMessage()
- func (x *FilePrefix) ProtoReflect() protoreflect.Message
- func (x *FilePrefix) Reset()
- func (x *FilePrefix) String() string
- type FileShareReq
- type FileShareResp
- func (*FileShareResp) Descriptor() ([]byte, []int)deprecated
- func (x *FileShareResp) GetError() string
- func (x *FileShareResp) GetShareLink() string
- func (*FileShareResp) ProtoMessage()
- func (x *FileShareResp) ProtoReflect() protoreflect.Message
- func (x *FileShareResp) Reset()
- func (x *FileShareResp) String() string
- type FileShareSaveReq
- func (*FileShareSaveReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileShareSaveReq) GetName() string
- func (x *FileShareSaveReq) GetParentId() int64
- func (x *FileShareSaveReq) GetShareLink() string
- func (*FileShareSaveReq) ProtoMessage()
- func (x *FileShareSaveReq) ProtoReflect() protoreflect.Message
- func (x *FileShareSaveReq) Reset()
- func (x *FileShareSaveReq) String() string
- type FileShareSaveResp
- func (*FileShareSaveResp) Descriptor() ([]byte, []int)deprecated
- func (x *FileShareSaveResp) GetError() string
- func (x *FileShareSaveResp) GetId() int64
- func (*FileShareSaveResp) ProtoMessage()
- func (x *FileShareSaveResp) ProtoReflect() protoreflect.Message
- func (x *FileShareSaveResp) Reset()
- func (x *FileShareSaveResp) String() string
- type FileUploadReq
- func (*FileUploadReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileUploadReq) GetName() string
- func (x *FileUploadReq) GetSourcePath() string
- func (x *FileUploadReq) GetType() string
- func (*FileUploadReq) ProtoMessage()
- func (x *FileUploadReq) ProtoReflect() protoreflect.Message
- func (x *FileUploadReq) Reset()
- func (x *FileUploadReq) String() string
- type FileUploadResp
- type FilecenterClient
- type FilecenterServer
- type UnimplementedFilecenterServer
- func (UnimplementedFilecenterServer) FileCreate(context.Context, *FileCreateReq) (*FileCreateResp, error)
- func (UnimplementedFilecenterServer) FileDeletion(context.Context, *FileDeletionReq) (*FileDeletionResp, error)
- func (UnimplementedFilecenterServer) FileDetails(context.Context, *FileDetailsReq) (*FileDetailsResp, error)
- func (UnimplementedFilecenterServer) FileDownload(context.Context, *FileDownloadReq) (*FileDownloadResp, error)
- func (UnimplementedFilecenterServer) FileList(context.Context, *FileListReq) (*FileListResp, error)
- func (UnimplementedFilecenterServer) FileMove(context.Context, *FileMoveReq) (*FileMoveResp, error)
- func (UnimplementedFilecenterServer) FileNameUpdate(context.Context, *FileNameUpdateReq) (*FileNameUpdateResp, error)
- func (UnimplementedFilecenterServer) FileShare(context.Context, *FileShareReq) (*FileShareResp, error)
- func (UnimplementedFilecenterServer) FileShareSave(context.Context, *FileShareSaveReq) (*FileShareSaveResp, error)
- func (UnimplementedFilecenterServer) FileUpload(context.Context, *FileUploadReq) (*FileUploadResp, error)
- func (UnimplementedFilecenterServer) UploadPicture(context.Context, *UploadPictureReq) (*UploadPictureResp, error)
- type UnsafeFilecenterServer
- type UploadPictureReq
- func (*UploadPictureReq) Descriptor() ([]byte, []int)deprecated
- func (x *UploadPictureReq) GetId() int64
- func (x *UploadPictureReq) GetMd5() string
- func (x *UploadPictureReq) GetPicture() []byte
- func (*UploadPictureReq) ProtoMessage()
- func (x *UploadPictureReq) ProtoReflect() protoreflect.Message
- func (x *UploadPictureReq) Reset()
- func (x *UploadPictureReq) String() string
- type UploadPictureResp
- func (*UploadPictureResp) Descriptor() ([]byte, []int)deprecated
- func (x *UploadPictureResp) GetError() string
- func (x *UploadPictureResp) GetURL() string
- func (*UploadPictureResp) ProtoMessage()
- func (x *UploadPictureResp) ProtoReflect() protoreflect.Message
- func (x *UploadPictureResp) Reset()
- func (x *UploadPictureResp) String() string
Constants ¶
const ( Filecenter_FileUpload_FullMethodName = "/pb.filecenter/FileUpload" Filecenter_FileDownload_FullMethodName = "/pb.filecenter/FileDownload" Filecenter_FileList_FullMethodName = "/pb.filecenter/FileList" Filecenter_FileNameUpdate_FullMethodName = "/pb.filecenter/FileNameUpdate" Filecenter_FileCreate_FullMethodName = "/pb.filecenter/FileCreate" Filecenter_FileDeletion_FullMethodName = "/pb.filecenter/FileDeletion" Filecenter_FileMove_FullMethodName = "/pb.filecenter/FileMove" Filecenter_FileDetails_FullMethodName = "/pb.filecenter/FileDetails" Filecenter_UploadPicture_FullMethodName = "/pb.filecenter/UploadPicture" )
Variables ¶
var File_filecenter_proto protoreflect.FileDescriptor
var Filecenter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.filecenter", HandlerType: (*FilecenterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FileUpload", Handler: _Filecenter_FileUpload_Handler, }, { MethodName: "FileDownload", Handler: _Filecenter_FileDownload_Handler, }, { MethodName: "FileList", Handler: _Filecenter_FileList_Handler, }, { MethodName: "FileNameUpdate", Handler: _Filecenter_FileNameUpdate_Handler, }, { MethodName: "FileCreate", Handler: _Filecenter_FileCreate_Handler, }, { MethodName: "FileDeletion", Handler: _Filecenter_FileDeletion_Handler, }, { MethodName: "FileMove", Handler: _Filecenter_FileMove_Handler, }, { MethodName: "FileShare", Handler: _Filecenter_FileShare_Handler, }, { MethodName: "FileShareSave", Handler: _Filecenter_FileShareSave_Handler, }, { MethodName: "FileDetails", Handler: _Filecenter_FileDetails_Handler, }, { MethodName: "UploadPicture", Handler: _Filecenter_UploadPicture_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "filecenter.proto", }
Filecenter_ServiceDesc is the grpc.ServiceDesc for Filecenter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFilecenterServer ¶
func RegisterFilecenterServer(s grpc.ServiceRegistrar, srv FilecenterServer)
Types ¶
type File ¶
type File struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` CreatedAt int64 `protobuf:"varint,2,opt,name=Created_at,json=CreatedAt,proto3" json:"Created_at,omitempty"` UpdatedAt int64 `protobuf:"varint,3,opt,name=Updated_at,json=UpdatedAt,proto3" json:"Updated_at,omitempty"` DeletedAt int64 `protobuf:"varint,4,opt,name=Deleted_at,json=DeletedAt,proto3" json:"Deleted_at,omitempty"` Name string `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,6,opt,name=Type,proto3" json:"Type,omitempty"` Path string `protobuf:"bytes,7,opt,name=Path,proto3" json:"Path,omitempty"` Size string `protobuf:"bytes,8,opt,name=Size,proto3" json:"Size,omitempty"` ParentId int64 `protobuf:"varint,10,opt,name=ParentId,proto3" json:"ParentId,omitempty"` // contains filtered or unexported fields }
func (*File) Descriptor
deprecated
func (*File) GetCreatedAt ¶
func (*File) GetDeletedAt ¶
func (*File) GetParentId ¶
func (*File) GetShareLink ¶
func (*File) GetUpdatedAt ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FileCreateReq ¶
type FileCreateReq struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"` ParentId int64 `protobuf:"varint,2,opt,name=ParentId,proto3" json:"ParentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*FileCreateReq) Descriptor
deprecated
func (*FileCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use FileCreateReq.ProtoReflect.Descriptor instead.
func (*FileCreateReq) GetName ¶
func (x *FileCreateReq) GetName() string
func (*FileCreateReq) GetParentId ¶
func (x *FileCreateReq) GetParentId() int64
func (*FileCreateReq) GetUserId ¶
func (x *FileCreateReq) GetUserId() int64
func (*FileCreateReq) ProtoMessage ¶
func (*FileCreateReq) ProtoMessage()
func (*FileCreateReq) ProtoReflect ¶
func (x *FileCreateReq) ProtoReflect() protoreflect.Message
func (*FileCreateReq) Reset ¶
func (x *FileCreateReq) Reset()
func (*FileCreateReq) String ¶
func (x *FileCreateReq) String() string
type FileCreateResp ¶
type FileCreateResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*FileCreateResp) Descriptor
deprecated
func (*FileCreateResp) Descriptor() ([]byte, []int)
Deprecated: Use FileCreateResp.ProtoReflect.Descriptor instead.
func (*FileCreateResp) GetError ¶
func (x *FileCreateResp) GetError() string
func (*FileCreateResp) ProtoMessage ¶
func (*FileCreateResp) ProtoMessage()
func (*FileCreateResp) ProtoReflect ¶
func (x *FileCreateResp) ProtoReflect() protoreflect.Message
func (*FileCreateResp) Reset ¶
func (x *FileCreateResp) Reset()
func (*FileCreateResp) String ¶
func (x *FileCreateResp) String() string
type FileDeletionReq ¶
type FileDeletionReq struct { List []int64 `protobuf:"varint,1,rep,packed,name=List,proto3" json:"List,omitempty"` // contains filtered or unexported fields }
func (*FileDeletionReq) Descriptor
deprecated
func (*FileDeletionReq) Descriptor() ([]byte, []int)
Deprecated: Use FileDeletionReq.ProtoReflect.Descriptor instead.
func (*FileDeletionReq) GetList ¶
func (x *FileDeletionReq) GetList() []int64
func (*FileDeletionReq) ProtoMessage ¶
func (*FileDeletionReq) ProtoMessage()
func (*FileDeletionReq) ProtoReflect ¶
func (x *FileDeletionReq) ProtoReflect() protoreflect.Message
func (*FileDeletionReq) Reset ¶
func (x *FileDeletionReq) Reset()
func (*FileDeletionReq) String ¶
func (x *FileDeletionReq) String() string
type FileDeletionResp ¶
type FileDeletionResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*FileDeletionResp) Descriptor
deprecated
func (*FileDeletionResp) Descriptor() ([]byte, []int)
Deprecated: Use FileDeletionResp.ProtoReflect.Descriptor instead.
func (*FileDeletionResp) GetError ¶
func (x *FileDeletionResp) GetError() string
func (*FileDeletionResp) ProtoMessage ¶
func (*FileDeletionResp) ProtoMessage()
func (*FileDeletionResp) ProtoReflect ¶
func (x *FileDeletionResp) ProtoReflect() protoreflect.Message
func (*FileDeletionResp) Reset ¶
func (x *FileDeletionResp) Reset()
func (*FileDeletionResp) String ¶
func (x *FileDeletionResp) String() string
type FileDetailsReq ¶
type FileDetailsReq struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*FileDetailsReq) Descriptor
deprecated
func (*FileDetailsReq) Descriptor() ([]byte, []int)
Deprecated: Use FileDetailsReq.ProtoReflect.Descriptor instead.
func (*FileDetailsReq) GetId ¶
func (x *FileDetailsReq) GetId() int64
func (*FileDetailsReq) ProtoMessage ¶
func (*FileDetailsReq) ProtoMessage()
func (*FileDetailsReq) ProtoReflect ¶
func (x *FileDetailsReq) ProtoReflect() protoreflect.Message
func (*FileDetailsReq) Reset ¶
func (x *FileDetailsReq) Reset()
func (*FileDetailsReq) String ¶
func (x *FileDetailsReq) String() string
type FileDetailsResp ¶
type FileDetailsResp struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` Path string `protobuf:"bytes,3,opt,name=Path,proto3" json:"Path,omitempty"` Size string `protobuf:"bytes,4,opt,name=Size,proto3" json:"Size,omitempty"` Time string `protobuf:"bytes,5,opt,name=Time,proto3" json:"Time,omitempty"` Error string `protobuf:"bytes,6,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*FileDetailsResp) Descriptor
deprecated
func (*FileDetailsResp) Descriptor() ([]byte, []int)
Deprecated: Use FileDetailsResp.ProtoReflect.Descriptor instead.
func (*FileDetailsResp) GetError ¶
func (x *FileDetailsResp) GetError() string
func (*FileDetailsResp) GetName ¶
func (x *FileDetailsResp) GetName() string
func (*FileDetailsResp) GetPath ¶
func (x *FileDetailsResp) GetPath() string
func (*FileDetailsResp) GetSize ¶
func (x *FileDetailsResp) GetSize() string
func (*FileDetailsResp) GetTime ¶
func (x *FileDetailsResp) GetTime() string
func (*FileDetailsResp) GetType ¶
func (x *FileDetailsResp) GetType() string
func (*FileDetailsResp) ProtoMessage ¶
func (*FileDetailsResp) ProtoMessage()
func (*FileDetailsResp) ProtoReflect ¶
func (x *FileDetailsResp) ProtoReflect() protoreflect.Message
func (*FileDetailsResp) Reset ¶
func (x *FileDetailsResp) Reset()
func (*FileDetailsResp) String ¶
func (x *FileDetailsResp) String() string
type FileDownloadReq ¶
type FileDownloadReq struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"` // contains filtered or unexported fields }
func (*FileDownloadReq) Descriptor
deprecated
func (*FileDownloadReq) Descriptor() ([]byte, []int)
Deprecated: Use FileDownloadReq.ProtoReflect.Descriptor instead.
func (*FileDownloadReq) GetId ¶
func (x *FileDownloadReq) GetId() int64
func (*FileDownloadReq) GetName ¶
func (x *FileDownloadReq) GetName() string
func (*FileDownloadReq) GetType ¶
func (x *FileDownloadReq) GetType() string
func (*FileDownloadReq) ProtoMessage ¶
func (*FileDownloadReq) ProtoMessage()
func (*FileDownloadReq) ProtoReflect ¶
func (x *FileDownloadReq) ProtoReflect() protoreflect.Message
func (*FileDownloadReq) Reset ¶
func (x *FileDownloadReq) Reset()
func (*FileDownloadReq) String ¶
func (x *FileDownloadReq) String() string
type FileDownloadResp ¶
type FileDownloadResp struct { Flag string `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*FileDownloadResp) Descriptor
deprecated
func (*FileDownloadResp) Descriptor() ([]byte, []int)
Deprecated: Use FileDownloadResp.ProtoReflect.Descriptor instead.
func (*FileDownloadResp) GetError ¶
func (x *FileDownloadResp) GetError() string
func (*FileDownloadResp) GetFlag ¶
func (x *FileDownloadResp) GetFlag() string
func (*FileDownloadResp) ProtoMessage ¶
func (*FileDownloadResp) ProtoMessage()
func (*FileDownloadResp) ProtoReflect ¶
func (x *FileDownloadResp) ProtoReflect() protoreflect.Message
func (*FileDownloadResp) Reset ¶
func (x *FileDownloadResp) Reset()
func (*FileDownloadResp) String ¶
func (x *FileDownloadResp) String() string
type FileIn ¶
type FileIn struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` Path string `protobuf:"bytes,3,opt,name=Path,proto3" json:"Path,omitempty"` Size string `protobuf:"bytes,4,opt,name=Size,proto3" json:"Size,omitempty"` UpdatedAt int64 `protobuf:"varint,6,opt,name=Updated_at,json=UpdatedAt,proto3" json:"Updated_at,omitempty"` // contains filtered or unexported fields }
func (*FileIn) Descriptor
deprecated
func (*FileIn) GetShareLink ¶
func (*FileIn) GetUpdatedAt ¶
func (*FileIn) ProtoMessage ¶
func (*FileIn) ProtoMessage()
func (*FileIn) ProtoReflect ¶
func (x *FileIn) ProtoReflect() protoreflect.Message
type FileListReq ¶
type FileListReq struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Page int64 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"` Size int64 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"` Field string `protobuf:"bytes,4,opt,name=Field,proto3" json:"Field,omitempty"` ASC bool `protobuf:"varint,5,opt,name=ASC,proto3" json:"ASC,omitempty"` // contains filtered or unexported fields }
func (*FileListReq) Descriptor
deprecated
func (*FileListReq) Descriptor() ([]byte, []int)
Deprecated: Use FileListReq.ProtoReflect.Descriptor instead.
func (*FileListReq) GetASC ¶
func (x *FileListReq) GetASC() bool
func (*FileListReq) GetField ¶
func (x *FileListReq) GetField() string
func (*FileListReq) GetId ¶
func (x *FileListReq) GetId() int64
func (*FileListReq) GetPage ¶
func (x *FileListReq) GetPage() int64
func (*FileListReq) GetSize ¶
func (x *FileListReq) GetSize() int64
func (*FileListReq) ProtoMessage ¶
func (*FileListReq) ProtoMessage()
func (*FileListReq) ProtoReflect ¶
func (x *FileListReq) ProtoReflect() protoreflect.Message
func (*FileListReq) Reset ¶
func (x *FileListReq) Reset()
func (*FileListReq) String ¶
func (x *FileListReq) String() string
type FileListResp ¶
type FileListResp struct { List []*FileIn `protobuf:"bytes,1,rep,name=List,proto3" json:"List,omitempty"` Count int64 `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"` Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*FileListResp) Descriptor
deprecated
func (*FileListResp) Descriptor() ([]byte, []int)
Deprecated: Use FileListResp.ProtoReflect.Descriptor instead.
func (*FileListResp) GetCount ¶
func (x *FileListResp) GetCount() int64
func (*FileListResp) GetError ¶
func (x *FileListResp) GetError() string
func (*FileListResp) GetList ¶
func (x *FileListResp) GetList() []*FileIn
func (*FileListResp) ProtoMessage ¶
func (*FileListResp) ProtoMessage()
func (*FileListResp) ProtoReflect ¶
func (x *FileListResp) ProtoReflect() protoreflect.Message
func (*FileListResp) Reset ¶
func (x *FileListResp) Reset()
func (*FileListResp) String ¶
func (x *FileListResp) String() string
type FileMoveReq ¶
type FileMoveReq struct { LastParentId int64 `protobuf:"varint,1,opt,name=LastParentId,proto3" json:"LastParentId,omitempty"` PreParentId int64 `protobuf:"varint,2,opt,name=PreParentId,proto3" json:"PreParentId,omitempty"` Id int64 `protobuf:"varint,3,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*FileMoveReq) Descriptor
deprecated
func (*FileMoveReq) Descriptor() ([]byte, []int)
Deprecated: Use FileMoveReq.ProtoReflect.Descriptor instead.
func (*FileMoveReq) GetId ¶
func (x *FileMoveReq) GetId() int64
func (*FileMoveReq) GetLastParentId ¶
func (x *FileMoveReq) GetLastParentId() int64
func (*FileMoveReq) GetPreParentId ¶
func (x *FileMoveReq) GetPreParentId() int64
func (*FileMoveReq) ProtoMessage ¶
func (*FileMoveReq) ProtoMessage()
func (*FileMoveReq) ProtoReflect ¶
func (x *FileMoveReq) ProtoReflect() protoreflect.Message
func (*FileMoveReq) Reset ¶
func (x *FileMoveReq) Reset()
func (*FileMoveReq) String ¶
func (x *FileMoveReq) String() string
type FileMoveResp ¶
type FileMoveResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*FileMoveResp) Descriptor
deprecated
func (*FileMoveResp) Descriptor() ([]byte, []int)
Deprecated: Use FileMoveResp.ProtoReflect.Descriptor instead.
func (*FileMoveResp) GetError ¶
func (x *FileMoveResp) GetError() string
func (*FileMoveResp) ProtoMessage ¶
func (*FileMoveResp) ProtoMessage()
func (*FileMoveResp) ProtoReflect ¶
func (x *FileMoveResp) ProtoReflect() protoreflect.Message
func (*FileMoveResp) Reset ¶
func (x *FileMoveResp) Reset()
func (*FileMoveResp) String ¶
func (x *FileMoveResp) String() string
type FileNameUpdateReq ¶
type FileNameUpdateReq struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*FileNameUpdateReq) Descriptor
deprecated
func (*FileNameUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use FileNameUpdateReq.ProtoReflect.Descriptor instead.
func (*FileNameUpdateReq) GetId ¶
func (x *FileNameUpdateReq) GetId() int64
func (*FileNameUpdateReq) GetName ¶
func (x *FileNameUpdateReq) GetName() string
func (*FileNameUpdateReq) ProtoMessage ¶
func (*FileNameUpdateReq) ProtoMessage()
func (*FileNameUpdateReq) ProtoReflect ¶
func (x *FileNameUpdateReq) ProtoReflect() protoreflect.Message
func (*FileNameUpdateReq) Reset ¶
func (x *FileNameUpdateReq) Reset()
func (*FileNameUpdateReq) String ¶
func (x *FileNameUpdateReq) String() string
type FileNameUpdateResp ¶
type FileNameUpdateResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*FileNameUpdateResp) Descriptor
deprecated
func (*FileNameUpdateResp) Descriptor() ([]byte, []int)
Deprecated: Use FileNameUpdateResp.ProtoReflect.Descriptor instead.
func (*FileNameUpdateResp) GetError ¶
func (x *FileNameUpdateResp) GetError() string
func (*FileNameUpdateResp) ProtoMessage ¶
func (*FileNameUpdateResp) ProtoMessage()
func (*FileNameUpdateResp) ProtoReflect ¶
func (x *FileNameUpdateResp) ProtoReflect() protoreflect.Message
func (*FileNameUpdateResp) Reset ¶
func (x *FileNameUpdateResp) Reset()
func (*FileNameUpdateResp) String ¶
func (x *FileNameUpdateResp) String() string
type FilePrefix ¶
type FilePrefix struct { ParentId int64 `protobuf:"varint,1,opt,name=ParentId,proto3" json:"ParentId,omitempty"` Id int64 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"` // contains filtered or unexported fields }
func (*FilePrefix) Descriptor
deprecated
func (*FilePrefix) Descriptor() ([]byte, []int)
Deprecated: Use FilePrefix.ProtoReflect.Descriptor instead.
func (*FilePrefix) GetId ¶
func (x *FilePrefix) GetId() int64
func (*FilePrefix) GetParentId ¶
func (x *FilePrefix) GetParentId() int64
func (*FilePrefix) GetType ¶
func (x *FilePrefix) GetType() string
func (*FilePrefix) ProtoMessage ¶
func (*FilePrefix) ProtoMessage()
func (*FilePrefix) ProtoReflect ¶
func (x *FilePrefix) ProtoReflect() protoreflect.Message
func (*FilePrefix) Reset ¶
func (x *FilePrefix) Reset()
func (*FilePrefix) String ¶
func (x *FilePrefix) String() string
type FileShareReq ¶
type FileShareReq struct { // contains filtered or unexported fields }
func (*FileShareReq) Descriptor
deprecated
func (*FileShareReq) Descriptor() ([]byte, []int)
Deprecated: Use FileShareReq.ProtoReflect.Descriptor instead.
func (*FileShareReq) GetId ¶
func (x *FileShareReq) GetId() int64
func (*FileShareReq) ProtoMessage ¶
func (*FileShareReq) ProtoMessage()
func (*FileShareReq) ProtoReflect ¶
func (x *FileShareReq) ProtoReflect() protoreflect.Message
func (*FileShareReq) Reset ¶
func (x *FileShareReq) Reset()
func (*FileShareReq) String ¶
func (x *FileShareReq) String() string
type FileShareResp ¶
type FileShareResp struct { // contains filtered or unexported fields }
func (*FileShareResp) Descriptor
deprecated
func (*FileShareResp) Descriptor() ([]byte, []int)
Deprecated: Use FileShareResp.ProtoReflect.Descriptor instead.
func (*FileShareResp) GetError ¶
func (x *FileShareResp) GetError() string
func (*FileShareResp) GetShareLink ¶
func (x *FileShareResp) GetShareLink() string
func (*FileShareResp) ProtoMessage ¶
func (*FileShareResp) ProtoMessage()
func (*FileShareResp) ProtoReflect ¶
func (x *FileShareResp) ProtoReflect() protoreflect.Message
func (*FileShareResp) Reset ¶
func (x *FileShareResp) Reset()
func (*FileShareResp) String ¶
func (x *FileShareResp) String() string
type FileShareSaveReq ¶
type FileShareSaveReq struct { // contains filtered or unexported fields }
func (*FileShareSaveReq) Descriptor
deprecated
func (*FileShareSaveReq) Descriptor() ([]byte, []int)
Deprecated: Use FileShareSaveReq.ProtoReflect.Descriptor instead.
func (*FileShareSaveReq) GetName ¶
func (x *FileShareSaveReq) GetName() string
func (*FileShareSaveReq) GetParentId ¶
func (x *FileShareSaveReq) GetParentId() int64
func (*FileShareSaveReq) GetShareLink ¶
func (x *FileShareSaveReq) GetShareLink() string
func (*FileShareSaveReq) ProtoMessage ¶
func (*FileShareSaveReq) ProtoMessage()
func (*FileShareSaveReq) ProtoReflect ¶
func (x *FileShareSaveReq) ProtoReflect() protoreflect.Message
func (*FileShareSaveReq) Reset ¶
func (x *FileShareSaveReq) Reset()
func (*FileShareSaveReq) String ¶
func (x *FileShareSaveReq) String() string
type FileShareSaveResp ¶
type FileShareSaveResp struct { // contains filtered or unexported fields }
func (*FileShareSaveResp) Descriptor
deprecated
func (*FileShareSaveResp) Descriptor() ([]byte, []int)
Deprecated: Use FileShareSaveResp.ProtoReflect.Descriptor instead.
func (*FileShareSaveResp) GetError ¶
func (x *FileShareSaveResp) GetError() string
func (*FileShareSaveResp) GetId ¶
func (x *FileShareSaveResp) GetId() int64
func (*FileShareSaveResp) ProtoMessage ¶
func (*FileShareSaveResp) ProtoMessage()
func (*FileShareSaveResp) ProtoReflect ¶
func (x *FileShareSaveResp) ProtoReflect() protoreflect.Message
func (*FileShareSaveResp) Reset ¶
func (x *FileShareSaveResp) Reset()
func (*FileShareSaveResp) String ¶
func (x *FileShareSaveResp) String() string
type FileUploadReq ¶
type FileUploadReq struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` SourcePath string `protobuf:"bytes,3,opt,name=SourcePath,proto3" json:"SourcePath,omitempty"` // contains filtered or unexported fields }
func (*FileUploadReq) Descriptor
deprecated
func (*FileUploadReq) Descriptor() ([]byte, []int)
Deprecated: Use FileUploadReq.ProtoReflect.Descriptor instead.
func (*FileUploadReq) GetName ¶
func (x *FileUploadReq) GetName() string
func (*FileUploadReq) GetSourcePath ¶
func (x *FileUploadReq) GetSourcePath() string
func (*FileUploadReq) GetType ¶
func (x *FileUploadReq) GetType() string
func (*FileUploadReq) ProtoMessage ¶
func (*FileUploadReq) ProtoMessage()
func (*FileUploadReq) ProtoReflect ¶
func (x *FileUploadReq) ProtoReflect() protoreflect.Message
func (*FileUploadReq) Reset ¶
func (x *FileUploadReq) Reset()
func (*FileUploadReq) String ¶
func (x *FileUploadReq) String() string
type FileUploadResp ¶
type FileUploadResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*FileUploadResp) Descriptor
deprecated
func (*FileUploadResp) Descriptor() ([]byte, []int)
Deprecated: Use FileUploadResp.ProtoReflect.Descriptor instead.
func (*FileUploadResp) GetError ¶
func (x *FileUploadResp) GetError() string
func (*FileUploadResp) ProtoMessage ¶
func (*FileUploadResp) ProtoMessage()
func (*FileUploadResp) ProtoReflect ¶
func (x *FileUploadResp) ProtoReflect() protoreflect.Message
func (*FileUploadResp) Reset ¶
func (x *FileUploadResp) Reset()
func (*FileUploadResp) String ¶
func (x *FileUploadResp) String() string
type FilecenterClient ¶
type FilecenterClient interface { FileUpload(ctx context.Context, in *FileUploadReq, opts ...grpc.CallOption) (*FileUploadResp, error) FileDownload(ctx context.Context, in *FileDownloadReq, opts ...grpc.CallOption) (*FileDownloadResp, error) FileList(ctx context.Context, in *FileListReq, opts ...grpc.CallOption) (*FileListResp, error) FileNameUpdate(ctx context.Context, in *FileNameUpdateReq, opts ...grpc.CallOption) (*FileNameUpdateResp, error) FileCreate(ctx context.Context, in *FileCreateReq, opts ...grpc.CallOption) (*FileCreateResp, error) FileDeletion(ctx context.Context, in *FileDeletionReq, opts ...grpc.CallOption) (*FileDeletionResp, error) FileMove(ctx context.Context, in *FileMoveReq, opts ...grpc.CallOption) (*FileMoveResp, error) FileDetails(ctx context.Context, in *FileDetailsReq, opts ...grpc.CallOption) (*FileDetailsResp, error) UploadPicture(ctx context.Context, in *UploadPictureReq, opts ...grpc.CallOption) (*UploadPictureResp, error) }
FilecenterClient is the client API for Filecenter 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.
func NewFilecenterClient ¶
func NewFilecenterClient(cc grpc.ClientConnInterface) FilecenterClient
type FilecenterServer ¶
type FilecenterServer interface { FileUpload(context.Context, *FileUploadReq) (*FileUploadResp, error) FileDownload(context.Context, *FileDownloadReq) (*FileDownloadResp, error) FileList(context.Context, *FileListReq) (*FileListResp, error) FileNameUpdate(context.Context, *FileNameUpdateReq) (*FileNameUpdateResp, error) FileCreate(context.Context, *FileCreateReq) (*FileCreateResp, error) FileDeletion(context.Context, *FileDeletionReq) (*FileDeletionResp, error) FileMove(context.Context, *FileMoveReq) (*FileMoveResp, error) FileDetails(context.Context, *FileDetailsReq) (*FileDetailsResp, error) UploadPicture(context.Context, *UploadPictureReq) (*UploadPictureResp, error) // contains filtered or unexported methods }
FilecenterServer is the server API for Filecenter service. All implementations must embed UnimplementedFilecenterServer for forward compatibility
type UnimplementedFilecenterServer ¶
type UnimplementedFilecenterServer struct { }
UnimplementedFilecenterServer must be embedded to have forward compatible implementations.
func (UnimplementedFilecenterServer) FileCreate ¶
func (UnimplementedFilecenterServer) FileCreate(context.Context, *FileCreateReq) (*FileCreateResp, error)
func (UnimplementedFilecenterServer) FileDeletion ¶
func (UnimplementedFilecenterServer) FileDeletion(context.Context, *FileDeletionReq) (*FileDeletionResp, error)
func (UnimplementedFilecenterServer) FileDetails ¶
func (UnimplementedFilecenterServer) FileDetails(context.Context, *FileDetailsReq) (*FileDetailsResp, error)
func (UnimplementedFilecenterServer) FileDownload ¶
func (UnimplementedFilecenterServer) FileDownload(context.Context, *FileDownloadReq) (*FileDownloadResp, error)
func (UnimplementedFilecenterServer) FileList ¶
func (UnimplementedFilecenterServer) FileList(context.Context, *FileListReq) (*FileListResp, error)
func (UnimplementedFilecenterServer) FileMove ¶
func (UnimplementedFilecenterServer) FileMove(context.Context, *FileMoveReq) (*FileMoveResp, error)
func (UnimplementedFilecenterServer) FileNameUpdate ¶
func (UnimplementedFilecenterServer) FileNameUpdate(context.Context, *FileNameUpdateReq) (*FileNameUpdateResp, error)
func (UnimplementedFilecenterServer) FileShare ¶
func (UnimplementedFilecenterServer) FileShare(context.Context, *FileShareReq) (*FileShareResp, error)
func (UnimplementedFilecenterServer) FileShareSave ¶
func (UnimplementedFilecenterServer) FileShareSave(context.Context, *FileShareSaveReq) (*FileShareSaveResp, error)
func (UnimplementedFilecenterServer) FileUpload ¶
func (UnimplementedFilecenterServer) FileUpload(context.Context, *FileUploadReq) (*FileUploadResp, error)
func (UnimplementedFilecenterServer) UploadPicture ¶
func (UnimplementedFilecenterServer) UploadPicture(context.Context, *UploadPictureReq) (*UploadPictureResp, error)
type UnsafeFilecenterServer ¶
type UnsafeFilecenterServer interface {
// contains filtered or unexported methods
}
UnsafeFilecenterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FilecenterServer will result in compilation errors.
type UploadPictureReq ¶
type UploadPictureReq struct { Md5 string `protobuf:"bytes,1,opt,name=Md5,proto3" json:"Md5,omitempty"` // md5值 Id int64 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` // 用户Id Picture []byte `protobuf:"bytes,3,opt,name=Picture,proto3" json:"Picture,omitempty"` // 头像字节数组 // contains filtered or unexported fields }
func (*UploadPictureReq) Descriptor
deprecated
func (*UploadPictureReq) Descriptor() ([]byte, []int)
Deprecated: Use UploadPictureReq.ProtoReflect.Descriptor instead.
func (*UploadPictureReq) GetId ¶
func (x *UploadPictureReq) GetId() int64
func (*UploadPictureReq) GetMd5 ¶
func (x *UploadPictureReq) GetMd5() string
func (*UploadPictureReq) GetPicture ¶
func (x *UploadPictureReq) GetPicture() []byte
func (*UploadPictureReq) ProtoMessage ¶
func (*UploadPictureReq) ProtoMessage()
func (*UploadPictureReq) ProtoReflect ¶
func (x *UploadPictureReq) ProtoReflect() protoreflect.Message
func (*UploadPictureReq) Reset ¶
func (x *UploadPictureReq) Reset()
func (*UploadPictureReq) String ¶
func (x *UploadPictureReq) String() string
type UploadPictureResp ¶
type UploadPictureResp struct { URL string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*UploadPictureResp) Descriptor
deprecated
func (*UploadPictureResp) Descriptor() ([]byte, []int)
Deprecated: Use UploadPictureResp.ProtoReflect.Descriptor instead.
func (*UploadPictureResp) GetError ¶
func (x *UploadPictureResp) GetError() string
func (*UploadPictureResp) GetURL ¶
func (x *UploadPictureResp) GetURL() string
func (*UploadPictureResp) ProtoMessage ¶
func (*UploadPictureResp) ProtoMessage()
func (*UploadPictureResp) ProtoReflect ¶
func (x *UploadPictureResp) ProtoReflect() protoreflect.Message
func (*UploadPictureResp) Reset ¶
func (x *UploadPictureResp) Reset()
func (*UploadPictureResp) String ¶
func (x *UploadPictureResp) String() string