This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a change to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git
from 16da18d3 refactor(user_admin): reorganize import statements for better
readability
add 5cffab86 feat(service): implement file cleanup and deletion
functionality
new dd4b3e86 Merge branch 'feat/1.4.5/file' into test
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
cmd/wire_gen.go | 12 +-
configs/config.yaml | 3 +
go.mod | 2 +-
internal/base/constant/upload.go | 1 +
internal/base/cron/cron.go | 43 +++++-
internal/controller/upload_controller.go | 9 +-
.../{meta_entity.go => file_record_entity.go} | 24 +--
internal/migrations/migrations.go | 1 +
internal/migrations/{v23.go => v25.go} | 4 +-
internal/repo/answer/answer_repo.go | 19 ++-
internal/repo/file_record/file_record_repo.go | 84 ++++++++++
internal/repo/provider.go | 2 +
internal/repo/question/question_repo.go | 17 ++
internal/repo/revision/revision_repo.go | 12 +-
internal/router/static_router.go | 12 +-
internal/service/content/question_service.go | 2 +
.../service/file_record/file_record_service.go | 172 +++++++++++++++++++++
internal/service/object_info/object_info.go | 3 +-
internal/service/provider.go | 2 +
internal/service/revision/revision.go | 1 +
internal/service/service_config/service_config.go | 5 +-
internal/service/tag_common/tag_common.go | 9 +-
internal/service/uploader/upload.go | 52 +++++--
pkg/writer/writer.go | 5 +
24 files changed, 442 insertions(+), 54 deletions(-)
copy internal/entity/{meta_entity.go => file_record_entity.go} (69%)
copy internal/migrations/{v23.go => v25.go} (87%)
create mode 100644 internal/repo/file_record/file_record_repo.go
create mode 100644 internal/service/file_record/file_record_service.go