Documentation ¶
Index ¶
- Constants
- type Directory
- func (u *Directory) CreateDirectory(ctx kratosx.Context, req *entity.Directory) (uint32, error)
- func (u *Directory) DeleteDirectory(ctx kratosx.Context, ids []uint32) (uint32, error)
- func (u *Directory) GetDirectory(ctx kratosx.Context, id uint32) (*entity.Directory, error)
- func (u *Directory) ListDirectory(ctx kratosx.Context, req *types.ListDirectoryRequest) ([]*entity.Directory, uint32, error)
- func (u *Directory) UpdateDirectory(ctx kratosx.Context, req *entity.Directory) error
- type Export
- func (u *Export) DeleteExport(ctx kratosx.Context, ids []uint32) (uint32, error)
- func (s *Export) Download() thttp.HandlerFunc
- func (u *Export) ExportExcel(ctx kratosx.Context, req *types.ExportExcelRequest) (*types.ExportExcelReply, error)
- func (u *Export) ExportFile(ctx kratosx.Context, req *types.ExportFileRequest) (*types.ExportFileReply, error)
- func (u *Export) GetExport(ctx kratosx.Context, req *types.GetExportRequest) (*entity.Export, error)
- func (u *Export) ListExport(ctx kratosx.Context, req *types.ListExportRequest) ([]*entity.Export, uint32, error)
- func (s *Export) LocalPath(next http.Handler, src string) http.Handler
- func (u *Export) VerifyURL(key, expire, sign string) error
- type File
- func (u *File) DeleteFile(ctx kratosx.Context, ids []uint32) (uint32, error)
- func (u *File) GetFile(ctx kratosx.Context, req *types.GetFileRequest) (*entity.File, error)
- func (u *File) ListFile(ctx kratosx.Context, req *types.ListFileRequest) ([]*entity.File, uint32, error)
- func (s *File) LocalPath(next http.Handler, src string) http.Handler
- func (u *File) PrepareUploadFile(ctx kratosx.Context, req *types.PrepareUploadFileRequest) (*types.PrepareUploadFileReply, error)
- func (s *File) SrcBlob() thttp.HandlerFunc
- func (u *File) UpdateFile(ctx kratosx.Context, req *entity.File) error
- func (u *File) UploadFile(ctx kratosx.Context, req *types.UploadFileRequest) (*types.UploadFileReply, error)
Constants ¶
View Source
const ( EXPORT_STATUS_FAIL = "FAIL" EXPORT_STATUS_PROGRESS = "PROGRESS" EXPORT_STATUS_COMPLETED = "COMPLETED" EXPORT_STATUS_EXPIRED = "EXPIRED" )
View Source
const ( STATUS_PROGRESS = "PROGRESS" STATUS_COMPLETED = "COMPLETED" )
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, repo repository.Directory, ) *Directory
func (*Directory) CreateDirectory ¶
CreateDirectory 创建文件目录信息
func (*Directory) DeleteDirectory ¶
DeleteDirectory 删除文件目录信息
func (*Directory) GetDirectory ¶
GetDirectory 获取指定的文件目录信息
type Export ¶
type Export struct {
// contains filtered or unexported fields
}
func NewExport ¶
func NewExport( conf *conf.Config, repo repository.Export, file repository.File, store repository.Store, ) *Export
func (*Export) DeleteExport ¶
DeleteExport 删除导出信息
func (*Export) Download ¶
func (s *Export) Download() thttp.HandlerFunc
func (*Export) ExportExcel ¶
func (u *Export) ExportExcel(ctx kratosx.Context, req *types.ExportExcelRequest) (*types.ExportExcelReply, error)
ExportExcel 创建导出表格
func (*Export) ExportFile ¶
func (u *Export) ExportFile(ctx kratosx.Context, req *types.ExportFileRequest) (*types.ExportFileReply, error)
ExportFile 创建导出表格
func (*Export) GetExport ¶
func (u *Export) GetExport(ctx kratosx.Context, req *types.GetExportRequest) (*entity.Export, error)
GetExport 获取指定的导出信息
type File ¶
type File struct {
// contains filtered or unexported fields
}
func NewFile ¶
func NewFile( conf *conf.Config, repo repository.File, directory repository.Directory, store repository.Store, ) *File
func (*File) DeleteFile ¶
DeleteFile 删除文件信息
func (*File) ListFile ¶
func (u *File) ListFile(ctx kratosx.Context, req *types.ListFileRequest) ([]*entity.File, uint32, error)
ListFile 获取文件信息列表
func (*File) PrepareUploadFile ¶
func (u *File) PrepareUploadFile(ctx kratosx.Context, req *types.PrepareUploadFileRequest) (*types.PrepareUploadFileReply, error)
PrepareUploadFile 预上传文件信息
func (*File) SrcBlob ¶
func (s *File) SrcBlob() thttp.HandlerFunc
func (*File) UpdateFile ¶
UpdateFile 更新文件信息
func (*File) UploadFile ¶
func (u *File) UploadFile(ctx kratosx.Context, req *types.UploadFileRequest) (*types.UploadFileReply, error)
UploadFile 上传文件信息
Click to show internal directories.
Click to hide internal directories.