0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-05 19:44:43 +01:00
gitea/routers/api/v1/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
..
action.go
avatar.go
blob.go
branch.go Second part of refactor db.Find (#28194) 2023-12-11 16:56:48 +08:00
collaborators.go
commits.go
file.go
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
issue_attachment.go
issue_comment.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
issue_comment_attachment.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
issue_dependency.go
issue_label.go
issue_pin.go
issue_reaction.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
key.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
label.go
language.go
main_test.go
migrate.go
milestone.go Second part of refactor db.Find (#28194) 2023-12-11 16:56:48 +08:00
mirror.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
notes.go Abstract hash function usage (#28138) 2023-12-13 21:02:00 +00:00
patch.go
pull.go
pull_review.go
release.go Remove deprecated query condition in ListReleases (#28339) 2023-12-05 07:30:43 +00:00
release_attachment.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
release_tags.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
repo.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
repo_test.go
star.go
status.go
subscriber.go
tag.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
teams.go
topic.go
transfer.go
tree.go
wiki.go