dbs

package
v1.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 NewDirectory(conf *conf.Config) *Directory

func (Directory) CreateDirectory

func (r Directory) CreateDirectory(ctx kratosx.Context, directory *entity.Directory) (uint32, error)

CreateDirectory 创建数据

func (Directory) DeleteDirectory

func (r Directory) DeleteDirectory(ctx kratosx.Context, ids []uint32) (uint32, error)

DeleteDirectory 删除数据

func (Directory) GetDirectory

func (r Directory) GetDirectory(ctx kratosx.Context, id uint32) (*entity.Directory, error)

GetDirectory 获取指定的数据

func (Directory) GetDirectoryChildrenIds

func (r Directory) GetDirectoryChildrenIds(ctx kratosx.Context, id uint32) ([]uint32, error)

GetDirectoryChildrenIds 获取指定id的所有子id

func (Directory) GetDirectoryLimitById

func (r Directory) GetDirectoryLimitById(ctx kratosx.Context, id uint32) (*entity.DirectoryLimit, error)

func (Directory) GetDirectoryLimitByPath

func (r Directory) GetDirectoryLimitByPath(ctx kratosx.Context, paths []string) (*entity.DirectoryLimit, error)

func (Directory) GetDirectoryParentIds

func (r Directory) GetDirectoryParentIds(ctx kratosx.Context, id uint32) ([]uint32, error)

GetDirectoryParentIds 获取指定id的所有父id

func (Directory) ListDirectory

func (r Directory) ListDirectory(ctx kratosx.Context, req *types.ListDirectoryRequest) ([]*entity.Directory, uint32, error)

ListDirectory 获取列表

func (Directory) UpdateDirectory

func (r Directory) UpdateDirectory(ctx kratosx.Context, directory *entity.Directory) error

UpdateDirectory 更新数据

type Export

type Export struct {
	// contains filtered or unexported fields
}

func NewExport

func NewExport(conf *conf.Config) *Export

func (Export) CopyExport

func (r Export) CopyExport(ctx kratosx.Context, export *entity.Export, req *types.CopyExportRequest) (uint32, error)

func (Export) CreateExport

func (r Export) CreateExport(ctx kratosx.Context, export *entity.Export) (uint32, error)

CreateExport 创建数据

func (Export) DeleteExport

func (r Export) DeleteExport(ctx kratosx.Context, ids []uint32) (uint32, error)

DeleteExport 删除数据

func (Export) GetExport

func (r Export) GetExport(ctx kratosx.Context, id uint32) (*entity.Export, error)

GetExport 获取指定的数据

func (Export) GetExportBySha

func (r Export) GetExportBySha(ctx kratosx.Context, sha string) (*entity.Export, error)

GetExportBySha 获取指定数据

func (Export) GetExportFileCount added in v1.0.27

func (r Export) GetExportFileCount(ctx kratosx.Context, req *types.GetExportFileCountRequest) (int64, error)

func (Export) GetExportFileKeyById

func (r Export) GetExportFileKeyById(ctx kratosx.Context, id uint32) (string, error)

GetExportFileKeyById 获取导出的key

func (Export) GetKeyByValue

func (r Export) GetKeyByValue(ctx kratosx.Context, value string) (string, error)

func (Export) ListExport

func (r Export) ListExport(ctx kratosx.Context, req *types.ListExportRequest) ([]*entity.Export, uint32, error)

ListExport 获取列表

func (Export) UpdateExport

func (r Export) UpdateExport(ctx kratosx.Context, export *entity.Export) error

UpdateExport 更新数据

type File

type File struct {
	// contains filtered or unexported fields
}

func NewFile

func NewFile() *File

func (File) CopyFile

func (r File) CopyFile(ctx kratosx.Context, src *entity.File, directoryId uint32, fileName string) error

func (File) CreateFile

func (r File) CreateFile(ctx kratosx.Context, file *entity.File) (uint32, error)

CreateFile 创建数据

func (File) DeleteFile

func (r File) DeleteFile(ctx kratosx.Context, ids []uint32, call func(file *entity.File)) (uint32, error)

DeleteFile 删除数据

func (File) GetFile

func (r File) GetFile(ctx kratosx.Context, id uint32) (*entity.File, error)

GetFile 获取指定的数据

func (File) GetFileBySha

func (r File) GetFileBySha(ctx kratosx.Context, sha string) (*entity.File, error)

GetFileBySha 获取指定数据

func (File) GetFileBySrc

func (r File) GetFileBySrc(ctx kratosx.Context, src string) (*entity.File, error)

GetFileBySrc 获取指定数据

func (File) GetFileByUploadId

func (r File) GetFileByUploadId(ctx kratosx.Context, uid string) (*entity.File, error)

func (File) ListFile

func (r File) ListFile(ctx kratosx.Context, req *types.ListFileRequest) ([]*entity.File, uint32, error)

ListFile 获取列表

func (File) UpdateFile

func (r File) UpdateFile(ctx kratosx.Context, file *entity.File) error

UpdateFile 更新数据

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL