Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterResourceRpcServer(s grpc.ServiceRegistrar, srv ResourceRpcServer)
- type BatchResp
- type EmptyReq
- type EmptyResp
- type FileFolderDetails
- func (*FileFolderDetails) Descriptor() ([]byte, []int)deprecated
- func (x *FileFolderDetails) GetCreatedAt() int64
- func (x *FileFolderDetails) GetFilePath() string
- func (x *FileFolderDetails) GetFolderDesc() string
- func (x *FileFolderDetails) GetFolderName() string
- func (x *FileFolderDetails) GetId() int64
- func (x *FileFolderDetails) GetUpdatedAt() int64
- func (x *FileFolderDetails) GetUserId() string
- func (*FileFolderDetails) ProtoMessage()
- func (x *FileFolderDetails) ProtoReflect() protoreflect.Message
- func (x *FileFolderDetails) Reset()
- func (x *FileFolderDetails) String() string
- type FileFolderNewReq
- func (*FileFolderNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileFolderNewReq) GetFilePath() string
- func (x *FileFolderNewReq) GetFolderDesc() string
- func (x *FileFolderNewReq) GetFolderName() string
- func (x *FileFolderNewReq) GetId() int64
- func (x *FileFolderNewReq) GetUserId() string
- func (*FileFolderNewReq) ProtoMessage()
- func (x *FileFolderNewReq) ProtoReflect() protoreflect.Message
- func (x *FileFolderNewReq) Reset()
- func (x *FileFolderNewReq) String() string
- type FileUploadDetails
- func (*FileUploadDetails) Descriptor() ([]byte, []int)deprecated
- func (x *FileUploadDetails) GetCreatedAt() int64
- func (x *FileUploadDetails) GetFileMd5() string
- func (x *FileUploadDetails) GetFileName() string
- func (x *FileUploadDetails) GetFilePath() string
- func (x *FileUploadDetails) GetFileSize() int64
- func (x *FileUploadDetails) GetFileType() string
- func (x *FileUploadDetails) GetFileUrl() string
- func (x *FileUploadDetails) GetId() int64
- func (x *FileUploadDetails) GetUpdatedAt() int64
- func (x *FileUploadDetails) GetUserId() string
- func (*FileUploadDetails) ProtoMessage()
- func (x *FileUploadDetails) ProtoReflect() protoreflect.Message
- func (x *FileUploadDetails) Reset()
- func (x *FileUploadDetails) String() string
- type FileUploadNewReq
- func (*FileUploadNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileUploadNewReq) GetFileMd5() string
- func (x *FileUploadNewReq) GetFileName() string
- func (x *FileUploadNewReq) GetFilePath() string
- func (x *FileUploadNewReq) GetFileSize() int64
- func (x *FileUploadNewReq) GetFileType() string
- func (x *FileUploadNewReq) GetFileUrl() string
- func (x *FileUploadNewReq) GetId() int64
- func (x *FileUploadNewReq) GetUserId() string
- func (*FileUploadNewReq) ProtoMessage()
- func (x *FileUploadNewReq) ProtoReflect() protoreflect.Message
- func (x *FileUploadNewReq) Reset()
- func (x *FileUploadNewReq) String() string
- type FindFileFolderListReq
- func (*FindFileFolderListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindFileFolderListReq) GetFilePath() string
- func (x *FindFileFolderListReq) GetPage() int64
- func (x *FindFileFolderListReq) GetPageSize() int64
- func (x *FindFileFolderListReq) GetSorts() []string
- func (*FindFileFolderListReq) ProtoMessage()
- func (x *FindFileFolderListReq) ProtoReflect() protoreflect.Message
- func (x *FindFileFolderListReq) Reset()
- func (x *FindFileFolderListReq) String() string
- type FindFileFolderListResp
- func (*FindFileFolderListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindFileFolderListResp) GetList() []*FileFolderDetails
- func (x *FindFileFolderListResp) GetTotal() int64
- func (*FindFileFolderListResp) ProtoMessage()
- func (x *FindFileFolderListResp) ProtoReflect() protoreflect.Message
- func (x *FindFileFolderListResp) Reset()
- func (x *FindFileFolderListResp) String() string
- type FindFileUploadListReq
- func (*FindFileUploadListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindFileUploadListReq) GetFilePath() string
- func (x *FindFileUploadListReq) GetFileType() string
- func (x *FindFileUploadListReq) GetPage() int64
- func (x *FindFileUploadListReq) GetPageSize() int64
- func (x *FindFileUploadListReq) GetSorts() []string
- func (*FindFileUploadListReq) ProtoMessage()
- func (x *FindFileUploadListReq) ProtoReflect() protoreflect.Message
- func (x *FindFileUploadListReq) Reset()
- func (x *FindFileUploadListReq) String() string
- type FindFileUploadListResp
- func (*FindFileUploadListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindFileUploadListResp) GetList() []*FileUploadDetails
- func (x *FindFileUploadListResp) GetTotal() int64
- func (*FindFileUploadListResp) ProtoMessage()
- func (x *FindFileUploadListResp) ProtoReflect() protoreflect.Message
- func (x *FindFileUploadListResp) Reset()
- func (x *FindFileUploadListResp) String() string
- type IdReq
- type IdsReq
- type ResourceRpcClient
- type ResourceRpcServer
- type UnimplementedResourceRpcServer
- func (UnimplementedResourceRpcServer) AddFileFolder(context.Context, *FileFolderNewReq) (*FileFolderDetails, error)
- func (UnimplementedResourceRpcServer) AddFileUpload(context.Context, *FileUploadNewReq) (*FileUploadDetails, error)
- func (UnimplementedResourceRpcServer) DeleteFileFolder(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedResourceRpcServer) DeleteFileUpload(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedResourceRpcServer) FindFileFolderList(context.Context, *FindFileFolderListReq) (*FindFileFolderListResp, error)
- func (UnimplementedResourceRpcServer) FindFileUploadList(context.Context, *FindFileUploadListReq) (*FindFileUploadListResp, error)
- func (UnimplementedResourceRpcServer) UpdateFileFolder(context.Context, *FileFolderNewReq) (*FileFolderDetails, error)
- func (UnimplementedResourceRpcServer) UpdateFileUpload(context.Context, *FileUploadNewReq) (*FileUploadDetails, error)
- type UnsafeResourceRpcServer
- type UserIdReq
Constants ¶
const ( ResourceRpc_AddFileFolder_FullMethodName = "/resourcerpc.ResourceRpc/AddFileFolder" ResourceRpc_UpdateFileFolder_FullMethodName = "/resourcerpc.ResourceRpc/UpdateFileFolder" ResourceRpc_DeleteFileFolder_FullMethodName = "/resourcerpc.ResourceRpc/DeleteFileFolder" ResourceRpc_FindFileFolderList_FullMethodName = "/resourcerpc.ResourceRpc/FindFileFolderList" ResourceRpc_AddFileUpload_FullMethodName = "/resourcerpc.ResourceRpc/AddFileUpload" ResourceRpc_UpdateFileUpload_FullMethodName = "/resourcerpc.ResourceRpc/UpdateFileUpload" ResourceRpc_DeleteFileUpload_FullMethodName = "/resourcerpc.ResourceRpc/DeleteFileUpload" ResourceRpc_FindFileUploadList_FullMethodName = "/resourcerpc.ResourceRpc/FindFileUploadList" )
Variables ¶
var File_resource_proto protoreflect.FileDescriptor
var ResourceRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resourcerpc.ResourceRpc", HandlerType: (*ResourceRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddFileFolder", Handler: _ResourceRpc_AddFileFolder_Handler, }, { MethodName: "UpdateFileFolder", Handler: _ResourceRpc_UpdateFileFolder_Handler, }, { MethodName: "DeleteFileFolder", Handler: _ResourceRpc_DeleteFileFolder_Handler, }, { MethodName: "FindFileFolderList", Handler: _ResourceRpc_FindFileFolderList_Handler, }, { MethodName: "AddFileUpload", Handler: _ResourceRpc_AddFileUpload_Handler, }, { MethodName: "UpdateFileUpload", Handler: _ResourceRpc_UpdateFileUpload_Handler, }, { MethodName: "DeleteFileUpload", Handler: _ResourceRpc_DeleteFileUpload_Handler, }, { MethodName: "FindFileUploadList", Handler: _ResourceRpc_FindFileUploadList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "resource.proto", }
ResourceRpc_ServiceDesc is the grpc.ServiceDesc for ResourceRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterResourceRpcServer ¶
func RegisterResourceRpcServer(s grpc.ServiceRegistrar, srv ResourceRpcServer)
Types ¶
type BatchResp ¶
type BatchResp struct { SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // contains filtered or unexported fields }
func (*BatchResp) Descriptor
deprecated
func (*BatchResp) GetSuccessCount ¶
func (*BatchResp) ProtoMessage ¶
func (*BatchResp) ProtoMessage()
func (*BatchResp) ProtoReflect ¶
func (x *BatchResp) ProtoReflect() protoreflect.Message
type EmptyReq ¶
type EmptyReq struct {
// contains filtered or unexported fields
}
func (*EmptyReq) Descriptor
deprecated
func (*EmptyReq) ProtoMessage ¶
func (*EmptyReq) ProtoMessage()
func (*EmptyReq) ProtoReflect ¶
func (x *EmptyReq) ProtoReflect() protoreflect.Message
type EmptyResp ¶
type EmptyResp struct {
// contains filtered or unexported fields
}
func (*EmptyResp) Descriptor
deprecated
func (*EmptyResp) ProtoMessage ¶
func (*EmptyResp) ProtoMessage()
func (*EmptyResp) ProtoReflect ¶
func (x *EmptyResp) ProtoReflect() protoreflect.Message
type FileFolderDetails ¶
type FileFolderDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // 路径 FolderName string `protobuf:"bytes,4,opt,name=folder_name,json=folderName,proto3" json:"folder_name,omitempty"` // 文件夹名称 FolderDesc string `protobuf:"bytes,5,opt,name=folder_desc,json=folderDesc,proto3" json:"folder_desc,omitempty"` // 文件夹描述 CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 // contains filtered or unexported fields }
func (*FileFolderDetails) Descriptor
deprecated
func (*FileFolderDetails) Descriptor() ([]byte, []int)
Deprecated: Use FileFolderDetails.ProtoReflect.Descriptor instead.
func (*FileFolderDetails) GetCreatedAt ¶
func (x *FileFolderDetails) GetCreatedAt() int64
func (*FileFolderDetails) GetFilePath ¶
func (x *FileFolderDetails) GetFilePath() string
func (*FileFolderDetails) GetFolderDesc ¶
func (x *FileFolderDetails) GetFolderDesc() string
func (*FileFolderDetails) GetFolderName ¶
func (x *FileFolderDetails) GetFolderName() string
func (*FileFolderDetails) GetId ¶
func (x *FileFolderDetails) GetId() int64
func (*FileFolderDetails) GetUpdatedAt ¶
func (x *FileFolderDetails) GetUpdatedAt() int64
func (*FileFolderDetails) GetUserId ¶
func (x *FileFolderDetails) GetUserId() string
func (*FileFolderDetails) ProtoMessage ¶
func (*FileFolderDetails) ProtoMessage()
func (*FileFolderDetails) ProtoReflect ¶
func (x *FileFolderDetails) ProtoReflect() protoreflect.Message
func (*FileFolderDetails) Reset ¶
func (x *FileFolderDetails) Reset()
func (*FileFolderDetails) String ¶
func (x *FileFolderDetails) String() string
type FileFolderNewReq ¶
type FileFolderNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // 路径 FolderName string `protobuf:"bytes,4,opt,name=folder_name,json=folderName,proto3" json:"folder_name,omitempty"` // 文件夹名称 FolderDesc string `protobuf:"bytes,5,opt,name=folder_desc,json=folderDesc,proto3" json:"folder_desc,omitempty"` // 文件夹描述 // contains filtered or unexported fields }
************* blog 资源管理 *************
func (*FileFolderNewReq) Descriptor
deprecated
func (*FileFolderNewReq) Descriptor() ([]byte, []int)
Deprecated: Use FileFolderNewReq.ProtoReflect.Descriptor instead.
func (*FileFolderNewReq) GetFilePath ¶
func (x *FileFolderNewReq) GetFilePath() string
func (*FileFolderNewReq) GetFolderDesc ¶
func (x *FileFolderNewReq) GetFolderDesc() string
func (*FileFolderNewReq) GetFolderName ¶
func (x *FileFolderNewReq) GetFolderName() string
func (*FileFolderNewReq) GetId ¶
func (x *FileFolderNewReq) GetId() int64
func (*FileFolderNewReq) GetUserId ¶
func (x *FileFolderNewReq) GetUserId() string
func (*FileFolderNewReq) ProtoMessage ¶
func (*FileFolderNewReq) ProtoMessage()
func (*FileFolderNewReq) ProtoReflect ¶
func (x *FileFolderNewReq) ProtoReflect() protoreflect.Message
func (*FileFolderNewReq) Reset ¶
func (x *FileFolderNewReq) Reset()
func (*FileFolderNewReq) String ¶
func (x *FileFolderNewReq) String() string
type FileUploadDetails ¶
type FileUploadDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // 文件路径 FileName string `protobuf:"bytes,4,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 文件名称 FileType string `protobuf:"bytes,5,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"` // 文件类型 FileSize int64 `protobuf:"varint,6,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件大小 FileMd5 string `protobuf:"bytes,7,opt,name=file_md5,json=fileMd5,proto3" json:"file_md5,omitempty"` // 文件md5值 FileUrl string `protobuf:"bytes,8,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"` // 上传路径 CreatedAt int64 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 // contains filtered or unexported fields }
func (*FileUploadDetails) Descriptor
deprecated
func (*FileUploadDetails) Descriptor() ([]byte, []int)
Deprecated: Use FileUploadDetails.ProtoReflect.Descriptor instead.
func (*FileUploadDetails) GetCreatedAt ¶
func (x *FileUploadDetails) GetCreatedAt() int64
func (*FileUploadDetails) GetFileMd5 ¶
func (x *FileUploadDetails) GetFileMd5() string
func (*FileUploadDetails) GetFileName ¶
func (x *FileUploadDetails) GetFileName() string
func (*FileUploadDetails) GetFilePath ¶
func (x *FileUploadDetails) GetFilePath() string
func (*FileUploadDetails) GetFileSize ¶
func (x *FileUploadDetails) GetFileSize() int64
func (*FileUploadDetails) GetFileType ¶
func (x *FileUploadDetails) GetFileType() string
func (*FileUploadDetails) GetFileUrl ¶
func (x *FileUploadDetails) GetFileUrl() string
func (*FileUploadDetails) GetId ¶
func (x *FileUploadDetails) GetId() int64
func (*FileUploadDetails) GetUpdatedAt ¶
func (x *FileUploadDetails) GetUpdatedAt() int64
func (*FileUploadDetails) GetUserId ¶
func (x *FileUploadDetails) GetUserId() string
func (*FileUploadDetails) ProtoMessage ¶
func (*FileUploadDetails) ProtoMessage()
func (*FileUploadDetails) ProtoReflect ¶
func (x *FileUploadDetails) ProtoReflect() protoreflect.Message
func (*FileUploadDetails) Reset ¶
func (x *FileUploadDetails) Reset()
func (*FileUploadDetails) String ¶
func (x *FileUploadDetails) String() string
type FileUploadNewReq ¶
type FileUploadNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // 文件路径 FileName string `protobuf:"bytes,4,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 文件名称 FileType string `protobuf:"bytes,5,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"` // 文件类型 FileSize int64 `protobuf:"varint,6,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件大小 FileMd5 string `protobuf:"bytes,7,opt,name=file_md5,json=fileMd5,proto3" json:"file_md5,omitempty"` // 文件md5值 FileUrl string `protobuf:"bytes,8,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"` // 上传路径 // contains filtered or unexported fields }
func (*FileUploadNewReq) Descriptor
deprecated
func (*FileUploadNewReq) Descriptor() ([]byte, []int)
Deprecated: Use FileUploadNewReq.ProtoReflect.Descriptor instead.
func (*FileUploadNewReq) GetFileMd5 ¶
func (x *FileUploadNewReq) GetFileMd5() string
func (*FileUploadNewReq) GetFileName ¶
func (x *FileUploadNewReq) GetFileName() string
func (*FileUploadNewReq) GetFilePath ¶
func (x *FileUploadNewReq) GetFilePath() string
func (*FileUploadNewReq) GetFileSize ¶
func (x *FileUploadNewReq) GetFileSize() int64
func (*FileUploadNewReq) GetFileType ¶
func (x *FileUploadNewReq) GetFileType() string
func (*FileUploadNewReq) GetFileUrl ¶
func (x *FileUploadNewReq) GetFileUrl() string
func (*FileUploadNewReq) GetId ¶
func (x *FileUploadNewReq) GetId() int64
func (*FileUploadNewReq) GetUserId ¶
func (x *FileUploadNewReq) GetUserId() string
func (*FileUploadNewReq) ProtoMessage ¶
func (*FileUploadNewReq) ProtoMessage()
func (*FileUploadNewReq) ProtoReflect ¶
func (x *FileUploadNewReq) ProtoReflect() protoreflect.Message
func (*FileUploadNewReq) Reset ¶
func (x *FileUploadNewReq) Reset()
func (*FileUploadNewReq) String ¶
func (x *FileUploadNewReq) String() string
type FindFileFolderListReq ¶
type FindFileFolderListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 FilePath string `protobuf:"bytes,4,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // 路径 // contains filtered or unexported fields }
func (*FindFileFolderListReq) Descriptor
deprecated
func (*FindFileFolderListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindFileFolderListReq.ProtoReflect.Descriptor instead.
func (*FindFileFolderListReq) GetFilePath ¶
func (x *FindFileFolderListReq) GetFilePath() string
func (*FindFileFolderListReq) GetPage ¶
func (x *FindFileFolderListReq) GetPage() int64
func (*FindFileFolderListReq) GetPageSize ¶
func (x *FindFileFolderListReq) GetPageSize() int64
func (*FindFileFolderListReq) GetSorts ¶
func (x *FindFileFolderListReq) GetSorts() []string
func (*FindFileFolderListReq) ProtoMessage ¶
func (*FindFileFolderListReq) ProtoMessage()
func (*FindFileFolderListReq) ProtoReflect ¶
func (x *FindFileFolderListReq) ProtoReflect() protoreflect.Message
func (*FindFileFolderListReq) Reset ¶
func (x *FindFileFolderListReq) Reset()
func (*FindFileFolderListReq) String ¶
func (x *FindFileFolderListReq) String() string
type FindFileFolderListResp ¶
type FindFileFolderListResp struct { List []*FileFolderDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FindFileFolderListResp) Descriptor
deprecated
func (*FindFileFolderListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindFileFolderListResp.ProtoReflect.Descriptor instead.
func (*FindFileFolderListResp) GetList ¶
func (x *FindFileFolderListResp) GetList() []*FileFolderDetails
func (*FindFileFolderListResp) GetTotal ¶
func (x *FindFileFolderListResp) GetTotal() int64
func (*FindFileFolderListResp) ProtoMessage ¶
func (*FindFileFolderListResp) ProtoMessage()
func (*FindFileFolderListResp) ProtoReflect ¶
func (x *FindFileFolderListResp) ProtoReflect() protoreflect.Message
func (*FindFileFolderListResp) Reset ¶
func (x *FindFileFolderListResp) Reset()
func (*FindFileFolderListResp) String ¶
func (x *FindFileFolderListResp) String() string
type FindFileUploadListReq ¶
type FindFileUploadListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 FilePath string `protobuf:"bytes,4,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // 文件路径 FileType string `protobuf:"bytes,5,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"` // 文件类型 // contains filtered or unexported fields }
func (*FindFileUploadListReq) Descriptor
deprecated
func (*FindFileUploadListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindFileUploadListReq.ProtoReflect.Descriptor instead.
func (*FindFileUploadListReq) GetFilePath ¶
func (x *FindFileUploadListReq) GetFilePath() string
func (*FindFileUploadListReq) GetFileType ¶
func (x *FindFileUploadListReq) GetFileType() string
func (*FindFileUploadListReq) GetPage ¶
func (x *FindFileUploadListReq) GetPage() int64
func (*FindFileUploadListReq) GetPageSize ¶
func (x *FindFileUploadListReq) GetPageSize() int64
func (*FindFileUploadListReq) GetSorts ¶
func (x *FindFileUploadListReq) GetSorts() []string
func (*FindFileUploadListReq) ProtoMessage ¶
func (*FindFileUploadListReq) ProtoMessage()
func (*FindFileUploadListReq) ProtoReflect ¶
func (x *FindFileUploadListReq) ProtoReflect() protoreflect.Message
func (*FindFileUploadListReq) Reset ¶
func (x *FindFileUploadListReq) Reset()
func (*FindFileUploadListReq) String ¶
func (x *FindFileUploadListReq) String() string
type FindFileUploadListResp ¶
type FindFileUploadListResp struct { List []*FileUploadDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FindFileUploadListResp) Descriptor
deprecated
func (*FindFileUploadListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindFileUploadListResp.ProtoReflect.Descriptor instead.
func (*FindFileUploadListResp) GetList ¶
func (x *FindFileUploadListResp) GetList() []*FileUploadDetails
func (*FindFileUploadListResp) GetTotal ¶
func (x *FindFileUploadListResp) GetTotal() int64
func (*FindFileUploadListResp) ProtoMessage ¶
func (*FindFileUploadListResp) ProtoMessage()
func (*FindFileUploadListResp) ProtoReflect ¶
func (x *FindFileUploadListResp) ProtoReflect() protoreflect.Message
func (*FindFileUploadListResp) Reset ¶
func (x *FindFileUploadListResp) Reset()
func (*FindFileUploadListResp) String ¶
func (x *FindFileUploadListResp) String() string
type IdReq ¶
type IdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type IdsReq ¶
type IdsReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*IdsReq) Descriptor
deprecated
func (*IdsReq) ProtoMessage ¶
func (*IdsReq) ProtoMessage()
func (*IdsReq) ProtoReflect ¶
func (x *IdsReq) ProtoReflect() protoreflect.Message
type ResourceRpcClient ¶
type ResourceRpcClient interface { // 创建文件夹 AddFileFolder(ctx context.Context, in *FileFolderNewReq, opts ...grpc.CallOption) (*FileFolderDetails, error) // 更新文件夹 UpdateFileFolder(ctx context.Context, in *FileFolderNewReq, opts ...grpc.CallOption) (*FileFolderDetails, error) // 删除文件夹 DeleteFileFolder(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询文件夹列表 FindFileFolderList(ctx context.Context, in *FindFileFolderListReq, opts ...grpc.CallOption) (*FindFileFolderListResp, error) // 创建文件上传 AddFileUpload(ctx context.Context, in *FileUploadNewReq, opts ...grpc.CallOption) (*FileUploadDetails, error) // 更新文件上传 UpdateFileUpload(ctx context.Context, in *FileUploadNewReq, opts ...grpc.CallOption) (*FileUploadDetails, error) // 删除文件上传 DeleteFileUpload(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询文件上传列表 FindFileUploadList(ctx context.Context, in *FindFileUploadListReq, opts ...grpc.CallOption) (*FindFileUploadListResp, error) }
ResourceRpcClient is the client API for ResourceRpc 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 NewResourceRpcClient ¶
func NewResourceRpcClient(cc grpc.ClientConnInterface) ResourceRpcClient
type ResourceRpcServer ¶
type ResourceRpcServer interface { // 创建文件夹 AddFileFolder(context.Context, *FileFolderNewReq) (*FileFolderDetails, error) // 更新文件夹 UpdateFileFolder(context.Context, *FileFolderNewReq) (*FileFolderDetails, error) // 删除文件夹 DeleteFileFolder(context.Context, *IdsReq) (*BatchResp, error) // 查询文件夹列表 FindFileFolderList(context.Context, *FindFileFolderListReq) (*FindFileFolderListResp, error) // 创建文件上传 AddFileUpload(context.Context, *FileUploadNewReq) (*FileUploadDetails, error) // 更新文件上传 UpdateFileUpload(context.Context, *FileUploadNewReq) (*FileUploadDetails, error) // 删除文件上传 DeleteFileUpload(context.Context, *IdsReq) (*BatchResp, error) // 查询文件上传列表 FindFileUploadList(context.Context, *FindFileUploadListReq) (*FindFileUploadListResp, error) // contains filtered or unexported methods }
ResourceRpcServer is the server API for ResourceRpc service. All implementations must embed UnimplementedResourceRpcServer for forward compatibility
type UnimplementedResourceRpcServer ¶
type UnimplementedResourceRpcServer struct { }
UnimplementedResourceRpcServer must be embedded to have forward compatible implementations.
func (UnimplementedResourceRpcServer) AddFileFolder ¶
func (UnimplementedResourceRpcServer) AddFileFolder(context.Context, *FileFolderNewReq) (*FileFolderDetails, error)
func (UnimplementedResourceRpcServer) AddFileUpload ¶
func (UnimplementedResourceRpcServer) AddFileUpload(context.Context, *FileUploadNewReq) (*FileUploadDetails, error)
func (UnimplementedResourceRpcServer) DeleteFileFolder ¶
func (UnimplementedResourceRpcServer) DeleteFileUpload ¶
func (UnimplementedResourceRpcServer) FindFileFolderList ¶
func (UnimplementedResourceRpcServer) FindFileFolderList(context.Context, *FindFileFolderListReq) (*FindFileFolderListResp, error)
func (UnimplementedResourceRpcServer) FindFileUploadList ¶
func (UnimplementedResourceRpcServer) FindFileUploadList(context.Context, *FindFileUploadListReq) (*FindFileUploadListResp, error)
func (UnimplementedResourceRpcServer) UpdateFileFolder ¶
func (UnimplementedResourceRpcServer) UpdateFileFolder(context.Context, *FileFolderNewReq) (*FileFolderDetails, error)
func (UnimplementedResourceRpcServer) UpdateFileUpload ¶
func (UnimplementedResourceRpcServer) UpdateFileUpload(context.Context, *FileUploadNewReq) (*FileUploadDetails, error)
type UnsafeResourceRpcServer ¶
type UnsafeResourceRpcServer interface {
// contains filtered or unexported methods
}
UnsafeResourceRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceRpcServer will result in compilation errors.
type UserIdReq ¶
type UserIdReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UserIdReq) Descriptor
deprecated
func (*UserIdReq) ProtoMessage ¶
func (*UserIdReq) ProtoMessage()
func (*UserIdReq) ProtoReflect ¶
func (x *UserIdReq) ProtoReflect() protoreflect.Message