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
..
2023-12-18 16:06:19 +00:00
2023-12-25 21:25:29 +01:00
2022-11-27 18:20:29 +00:00
2023-10-03 10:30:41 +00:00
2023-12-21 22:48:18 +01:00
2023-12-17 11:56:08 +00:00
2023-10-24 02:54:59 +00:00
2023-12-13 21:02:00 +00:00
2023-12-17 11:56:08 +00:00
2023-07-07 05:31:56 +00:00
2023-09-01 11:26:07 +00:00
2023-11-22 09:14:16 +00:00
2022-11-27 18:20:29 +00:00
2023-11-02 22:14:33 +08:00
2023-12-17 11:56:08 +00:00
2023-08-25 19:07:42 +08:00
2023-09-29 07:42:39 +00:00
2023-12-10 21:37:10 +02:00
2023-10-24 02:54:59 +00:00
2023-09-01 11:26:07 +00:00
2023-10-03 10:30:41 +00:00
2023-10-11 04:24:07 +00:00
2023-12-10 21:37:10 +02:00
2023-10-14 08:37:24 +00:00
2022-11-27 18:20:29 +00:00
2023-10-14 08:37:24 +00:00
2023-09-16 14:39:12 +00:00
2023-12-11 16:56:48 +08:00
2023-09-28 01:38:53 +00:00
2023-11-14 19:42:23 +08:00
2023-09-16 14:39:12 +00:00
2023-12-11 16:56:48 +08:00
2023-09-06 14:38:14 +08:00
2023-10-24 02:54:59 +00:00
2023-09-01 11:26:07 +00:00
2023-11-25 17:21:21 +00:00
2023-09-29 12:12:54 +00:00
2023-12-22 13:29:50 +00:00
2023-09-28 13:21:47 +00:00
2023-11-30 16:26:56 +01:00
2023-10-11 04:24:07 +00:00
2023-12-17 11:56:08 +00:00
2023-06-23 12:37:56 +00:00
2023-09-16 14:39:12 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-12-17 14:38:54 +00:00
2023-09-01 11:26:07 +00:00
2023-10-11 04:24:07 +00:00