feat(wxwork): refactor recipient handling to use slices instead of structs

This commit is contained in:
mlogclub
2026-04-21 17:51:35 +08:00
parent 179c01c0e4
commit 22e1c2e395
2 changed files with 17 additions and 28 deletions
@@ -25,9 +25,9 @@ func TestWxWorkNotifyDefaultRecipients(t *testing.T) {
})
svc := newWxWorkNotifyService()
recipients := svc.defaultRecipients()
if len(recipients.ToUsers) != 2 || recipients.ToUsers[0] != "user_a" || recipients.ToUsers[1] != "user_b" {
t.Fatalf("unexpected users: %#v", recipients.ToUsers)
toUsers := svc.defaultToUsers()
if len(toUsers) != 2 || toUsers[0] != "user_a" || toUsers[1] != "user_b" {
t.Fatalf("unexpected users: %#v", toUsers)
}
}