1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-09 19:54:25 +00:00
gitea/routers/api/actions
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
..
ping
runner Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00
actions.go Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
artifacts_chunks.go Fix merging artifact chunks error when minio storage basepath is set (#28555) 2023-12-21 07:04:50 +00:00
artifacts_utils.go Fix/upload artifact error windows (#27802) 2023-10-30 10:40:05 +00:00
artifacts.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00