gitea/models/repo
delvh 778ad795fd
Refactor deletion (#28610)
Introduce the new generic deletion methods
- `func DeleteByID[T any](ctx context.Context, id int64) (int64, error)`
- `func DeleteByIDs[T any](ctx context.Context, ids ...int64) error`
- `func Delete[T any](ctx context.Context, opts FindOptions) (int64,
error)`

So, we no longer need any specific deletion method and can just use
the generic ones instead.

Replacement of #28450

Closes #28450

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-12-25 21:25:29 +01:00
..
archiver.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
attachment_test.go
attachment.go
avatar.go
collaboration_test.go
collaboration.go
fork_test.go
fork.go
git.go
issue.go
language_stats.go
main_test.go
mirror.go
pushmirror_test.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
pushmirror.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
redirect_test.go
redirect.go
release_test.go
release.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
repo_indexer.go
repo_list_test.go
repo_list.go
repo_test.go Refactor SSH clone URL generation code (#28421) 2023-12-15 06:18:12 +00:00
repo_unit_test.go
repo_unit.go
repo.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
search.go
star_test.go
star.go
topic_test.go
topic.go Add orphaned topic consistency check (#28507) 2023-12-18 15:32:08 +00:00
update.go
upload.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
user_repo_test.go
user_repo.go
watch_test.go
watch.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
wiki_test.go
wiki.go