Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRecordRepo ¶
type FileRecordRepo interface { AddFileRecord(ctx context.Context, fileRecord *entity.FileRecord) (err error) UpdateFileRecord(ctx context.Context, fileRecord *entity.FileRecord) (err error) GetFileRecordPage(ctx context.Context, page, pageSize int, cond *entity.FileRecord) ( fileRecordList []*entity.FileRecord, total int64, err error) DeleteFileRecord(ctx context.Context, id int) (err error) }
FileRecordRepo file record repository
type FileRecordService ¶
type FileRecordService struct {
// contains filtered or unexported fields
}
FileRecordService file record service
func NewFileRecordService ¶
func NewFileRecordService( fileRecordRepo FileRecordRepo, revisionRepo revision.RevisionRepo, serviceConfig *service_config.ServiceConfig, siteInfoService siteinfo_common.SiteInfoCommonService, ) *FileRecordService
NewFileRecordService new file record service
func (*FileRecordService) AddFileRecord ¶
func (fs *FileRecordService) AddFileRecord(ctx context.Context, userID, filePath, fileURL, source string)
AddFileRecord add file record
func (*FileRecordService) CleanOrphanUploadFiles ¶
func (fs *FileRecordService) CleanOrphanUploadFiles(ctx context.Context)
CleanOrphanUploadFiles clean orphan upload files
func (*FileRecordService) PurgeDeletedFiles ¶
func (fs *FileRecordService) PurgeDeletedFiles(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.