1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
gitea/models/issues
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
..
assignees_test.go
assignees.go
comment_code.go
comment_list.go
comment_test.go
comment.go
content_history_test.go
content_history.go
dependency_test.go
dependency.go
issue_index.go
issue_label_test.go
issue_label.go
issue_list_test.go
issue_list.go
issue_lock.go
issue_project.go
issue_search.go
issue_stats.go
issue_test.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
issue_update.go
issue_user_test.go
issue_user.go
issue_watch_test.go
issue_watch.go
issue_xref_test.go
issue_xref.go
issue.go
label_test.go
label.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
main_test.go
milestone_list.go
milestone_test.go
milestone.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
pull_list.go
pull_test.go
pull.go
reaction_test.go
reaction.go
review_list.go
review_test.go
review.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
stopwatch_test.go
stopwatch.go
tracked_time_test.go
tracked_time.go