kolaente
53d1fa0735
refactor(admin): share user-mutation logic between v1 and v2
...
The admin set-admin-flag, set-status and delete-user operations were
implemented twice — once in the v1 echo handlers, once in the v2 Huma handlers.
Extract the load/guard/mutate logic into models.SetUserAdminFlag,
models.SetUserStatusAsAdmin and models.DeleteUserAsAdmin so both APIs call the
same code; each handler keeps only its own request binding, validation and
response shape. v1 stays byte-identical on the wire.
2026-06-11 19:32:42 +00:00
..
2026-04-20 18:55:06 +00:00
2026-04-20 18:55:06 +00:00
2026-06-11 19:32:42 +00:00
2026-04-20 18:55:06 +00:00
2026-06-11 19:32:42 +00:00
2026-06-11 19:32:42 +00:00
2026-06-08 13:54:09 +00:00
2026-06-08 13:54:09 +00:00
2026-03-30 12:28:15 +00:00
2026-03-30 12:28:15 +00:00
2026-03-30 12:28:15 +00:00
2026-05-15 17:25:09 +02:00
2026-05-01 14:44:10 +00:00
2026-05-15 17:25:09 +02:00
2026-06-05 08:49:23 +00:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2026-06-05 08:51:39 +00:00
2025-10-31 17:28:52 +00:00
2026-06-09 20:13:02 +00:00
2026-05-20 21:02:14 +00:00
2026-05-20 21:02:14 +00:00
2026-06-08 13:54:09 +00:00
2026-06-08 13:54:09 +00:00
2026-03-23 16:23:15 +01:00
2025-06-10 12:18:38 +02:00
2025-08-13 11:05:05 +02:00
2026-04-09 10:45:34 +00:00
2026-06-09 20:01:20 +00:00
2026-02-25 11:03:02 +01:00
2025-08-13 11:05:05 +02:00
2026-06-09 11:40:04 +00:00
2025-08-13 11:05:05 +02:00
2026-02-25 11:03:02 +01:00
2026-06-10 11:56:05 +02:00
2026-06-09 11:40:04 +00:00
2026-05-31 15:27:44 +02:00
2026-06-05 09:17:25 +00:00
2026-04-09 15:38:07 +00:00
2026-06-05 09:17:25 +00:00
2026-05-30 13:48:01 +00:00
2026-02-17 18:01:05 +01:00
2026-03-08 16:03:47 +01:00
2025-12-10 12:39:05 +01:00
2026-06-02 11:55:25 +00:00
2026-05-30 13:48:01 +00:00
2026-06-08 13:54:09 +00:00
2026-06-07 10:05:24 +00:00
2026-05-15 17:25:09 +02:00
2026-05-15 17:25:09 +02:00
2026-03-27 23:05:04 +00:00
2025-08-13 11:05:05 +02:00
2025-12-04 10:16:16 +01:00
2026-06-09 20:11:43 +00:00
2026-02-25 11:03:02 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:56:25 +01:00
2026-02-25 11:56:25 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:03:02 +01:00
2026-06-07 15:33:20 +00:00
2026-04-11 17:20:53 +00:00
2026-02-25 11:03:02 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:03:02 +01:00
2026-06-07 10:37:59 +00:00
2026-04-20 18:55:06 +00:00
2026-06-01 13:04:34 +00:00
2026-06-10 10:12:09 +00:00
2025-08-13 11:05:05 +02:00
2026-02-25 11:03:02 +01:00
2026-06-09 21:34:22 +00:00
2026-04-09 07:25:57 +00:00
2025-08-13 11:05:05 +02:00
2025-08-13 11:05:05 +02:00
2026-06-07 10:40:20 +00:00
2026-02-25 10:30:25 +01:00
2026-06-05 08:21:48 +00:00
2026-06-08 13:54:09 +00:00
2025-08-13 11:05:05 +02:00
2026-02-25 11:03:02 +01:00
2026-06-07 09:57:51 +00:00
2025-08-13 11:05:05 +02:00
2026-06-09 19:42:16 +00:00
2025-08-13 11:05:05 +02:00
2026-04-09 16:22:56 +00:00
2026-06-10 10:22:39 +00:00
2026-02-26 16:09:13 +01:00
2026-06-08 13:54:09 +00:00
2025-06-10 12:18:38 +02:00
2025-06-10 12:18:38 +02:00
2026-05-19 10:35:43 +02:00
2026-06-11 18:31:03 +00:00
2025-10-09 10:53:18 +02:00
2026-03-03 12:46:34 +01:00
2026-06-03 19:57:26 +00:00
2026-03-04 17:20:26 +01:00
2026-06-01 14:13:39 +02:00
2026-03-08 19:45:53 +01:00
2026-03-08 19:45:53 +01:00
2026-04-09 07:25:57 +00:00
2026-06-10 11:55:51 +02:00
2026-04-05 12:20:35 +00:00
2025-08-13 11:05:05 +02:00
2025-08-13 11:05:05 +02:00
2026-06-09 20:42:00 +00:00
2026-03-08 19:45:53 +01:00
2026-03-08 19:45:53 +01:00
2026-02-25 12:15:28 +01:00
2025-06-25 11:38:24 +00:00
2026-04-02 16:30:23 +00:00
2025-11-27 15:14:42 +01:00
2026-05-31 12:56:57 +00:00
2026-04-11 20:44:28 +00:00
2026-06-10 10:12:09 +00:00
2026-04-20 18:55:06 +00:00
2025-10-09 13:33:27 +02:00
2026-06-07 10:48:23 +00:00
2025-06-10 12:18:38 +02:00
2025-08-13 11:05:05 +02:00
2026-04-20 18:55:06 +00:00
2025-08-13 11:05:05 +02:00
2026-06-07 10:48:23 +00:00
2026-06-08 13:54:09 +00:00
2026-06-08 13:54:09 +00:00
2026-06-08 13:54:09 +00:00
2025-06-10 12:18:38 +02:00
2026-05-06 16:08:16 +02:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2025-07-30 15:50:26 +00:00
2025-08-13 11:05:05 +02:00
2026-06-11 07:02:31 +00:00
2025-06-10 12:18:38 +02:00
2026-03-08 19:45:53 +01:00
2026-06-10 19:12:41 +00:00