Houmgaor
de3bf9173a
refactor(channelserver): extract RengokuRepository and MailRepository
...
Move all direct DB access from handlers_rengoku.go (11 calls) and
handlers_mail.go (10 calls) into dedicated repository types, continuing
the established extraction pattern.
RengokuRepository provides UpsertScore and GetRanking, replacing a
3-call check/insert/update sequence and an 8-case switch of nearly
identical queries respectively.
MailRepository provides SendMail, SendMailTx, GetListForCharacter,
GetByID, MarkRead, MarkDeleted, SetLocked, and MarkItemReceived.
The old Mail.Send(), Mail.MarkRead(), GetMailListForCharacter, and
GetMailByID free functions are removed. Guild handlers that sent mail
via Mail.Send(s, ...) now call mailRepo directly.
2026-02-20 23:31:27 +01:00
..
2026-02-20 19:11:41 +01:00
2026-02-20 21:22:01 +01:00
2026-02-19 18:13:34 +01:00
2026-02-19 18:13:34 +01:00
2026-02-19 18:13:34 +01:00
2026-02-20 19:50:28 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 21:18:40 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 22:06:55 +01:00
2026-02-20 19:46:57 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 17:07:42 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 22:18:46 +01:00
2026-02-18 21:48:08 +01:00
2026-02-18 21:48:08 +01:00
2026-02-18 21:48:08 +01:00
2026-02-20 17:07:42 +01:00
2026-02-18 21:48:08 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 22:57:40 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 22:30:28 +01:00
2026-02-19 00:23:04 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:06:55 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 22:30:28 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:31:27 +01:00
2026-02-18 21:48:08 +01:00
2026-02-20 22:06:55 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 18:42:08 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 19:50:28 +01:00
2026-02-20 18:58:32 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:09:51 +01:00
2026-02-18 21:39:13 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:21:14 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 22:30:28 +01:00
2026-02-20 23:21:14 +01:00
2026-02-20 18:58:32 +01:00
2026-02-20 18:58:32 +01:00
2026-02-18 21:48:08 +01:00
2026-02-18 21:48:08 +01:00
2026-02-18 21:48:08 +01:00
2026-02-20 23:09:51 +01:00
2026-02-19 00:05:20 +01:00
2026-02-19 00:05:20 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 22:57:40 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 22:30:28 +01:00
2026-02-20 22:53:16 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:30:28 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 22:18:46 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 18:58:32 +01:00
2026-02-20 23:31:27 +01:00