(t string, subject string, content string)
| 9 | ) |
| 10 | |
| 11 | func NotifyRootUser(t string, subject string, content string) { |
| 12 | user := model.GetRootUser().ToBaseUser() |
| 13 | err := NotifyUser(user.Id, user.Email, user.GetSetting(), dto.NewNotify(t, subject, content, nil)) |
| 14 | if err != nil { |
| 15 | common.SysError(fmt.Sprintf("failed to notify root user: %s", err.Error())) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func NotifyUser(userId int, userEmail string, userSetting dto.UserSetting, data dto.Notify) error { |
| 20 | notifyType := userSetting.NotifyType |
no test coverage detected