Documentation ¶
Index ¶
- type Directory
- func (r Directory) CreateDirectory(ctx kratosx.Context, directory *entity.Directory) (uint32, error)
- func (r Directory) DeleteDirectory(ctx kratosx.Context, ids []uint32) (uint32, error)
- func (r Directory) GetDirectory(ctx kratosx.Context, id uint32) (*entity.Directory, error)
- func (r Directory) GetDirectoryChildrenIds(ctx kratosx.Context, id uint32) ([]uint32, error)
- func (r Directory) GetDirectoryLimitById(ctx kratosx.Context, id uint32) (*entity.DirectoryLimit, error)
- func (r Directory) GetDirectoryLimitByPath(ctx kratosx.Context, paths []string) (*entity.DirectoryLimit, error)
- func (r Directory) GetDirectoryParentIds(ctx kratosx.Context, id uint32) ([]uint32, error)
- func (r Directory) ListDirectory(ctx kratosx.Context, req *types.ListDirectoryRequest) ([]*entity.Directory, uint32, error)
- func (r Directory) UpdateDirectory(ctx kratosx.Context, directory *entity.Directory) error
- type Export
- func (r Export) CopyExport(ctx kratosx.Context, export *entity.Export, req *types.CopyExportRequest) (uint32, error)
- func (r Export) CreateExport(ctx kratosx.Context, export *entity.Export) (uint32, error)
- func (r Export) DeleteExport(ctx kratosx.Context, ids []uint32) (uint32, error)
- func (r Export) GetExport(ctx kratosx.Context, id uint32) (*entity.Export, error)
- func (r Export) GetExportBySha(ctx kratosx.Context, sha string) (*entity.Export, error)
- func (r Export) GetExportFileCount(ctx kratosx.Context, req *types.GetExportFileCountRequest) (int64, error)
- func (r Export) GetExportFileKeyById(ctx kratosx.Context, id uint32) (string, error)
- func (r Export) GetKeyByValue(ctx kratosx.Context, value string) (string, error)
- func (r Export) ListExport(ctx kratosx.Context, req *types.ListExportRequest) ([]*entity.Export, uint32, error)
- func (r Export) UpdateExport(ctx kratosx.Context, export *entity.Export) error
- type File
- func (r File) CopyFile(ctx kratosx.Context, src *entity.File, directoryId uint32, fileName string) error
- func (r File) CreateFile(ctx kratosx.Context, file *entity.File) (uint32, error)
- func (r File) DeleteFile(ctx kratosx.Context, ids []uint32, call func(file *entity.File)) (uint32, error)
- func (r File) GetFile(ctx kratosx.Context, id uint32) (*entity.File, error)
- func (r File) GetFileBySha(ctx kratosx.Context, sha string) (*entity.File, error)
- func (r File) GetFileBySrc(ctx kratosx.Context, src string) (*entity.File, error)
- func (r File) GetFileByUploadId(ctx kratosx.Context, uid string) (*entity.File, error)
- func (r File) ListFile(ctx kratosx.Context, req *types.ListFileRequest) ([]*entity.File, uint32, error)
- func (r File) UpdateFile(ctx kratosx.Context, file *entity.File) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
func NewDirectory ¶
func (Directory) CreateDirectory ¶
func (r Directory) CreateDirectory(ctx kratosx.Context, directory *entity.Directory) (uint32, error)
CreateDirectory 创建数据
func (Directory) DeleteDirectory ¶
DeleteDirectory 删除数据
func (Directory) GetDirectory ¶
GetDirectory 获取指定的数据
func (Directory) GetDirectoryChildrenIds ¶
GetDirectoryChildrenIds 获取指定id的所有子id
func (Directory) GetDirectoryLimitById ¶
func (Directory) GetDirectoryLimitByPath ¶
func (Directory) GetDirectoryParentIds ¶
GetDirectoryParentIds 获取指定id的所有父id
type Export ¶
type Export struct {
// contains filtered or unexported fields
}
func (Export) CopyExport ¶
func (Export) CreateExport ¶
CreateExport 创建数据
func (Export) DeleteExport ¶
DeleteExport 删除数据
func (Export) GetExportBySha ¶
GetExportBySha 获取指定数据
func (Export) GetExportFileCount ¶ added in v1.0.27
func (Export) GetExportFileKeyById ¶
GetExportFileKeyById 获取导出的key
func (Export) GetKeyByValue ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (File) CreateFile ¶
CreateFile 创建数据
func (File) DeleteFile ¶
func (r File) DeleteFile(ctx kratosx.Context, ids []uint32, call func(file *entity.File)) (uint32, error)
DeleteFile 删除数据
func (File) GetFileBySha ¶
GetFileBySha 获取指定数据
func (File) GetFileBySrc ¶
GetFileBySrc 获取指定数据
func (File) GetFileByUploadId ¶
Click to show internal directories.
Click to hide internal directories.