mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 09:46:37 +08:00
feat(core): bind request services and implement registered tasks
Wire plugin services through Bind/InjectFrom and AppContext so HTTP and workers resolve dependencies after Apply. Register TaskHandler objects with persisted results, and implement send_email_code, mail:send, cleanup_inactive_users, and dispatch_bot_msg.
This commit is contained in:
@@ -40,4 +40,12 @@ const (
|
||||
//nolint:gosec // error message, not hardcoded credentials
|
||||
errServicePasswordTooShort = "密码长度至少为 8 位"
|
||||
errUniqueUsernameFailed = "failed to generate unique username"
|
||||
errInvalidEmail = "邮箱地址无效"
|
||||
errInvalidEmailCode = "验证码必须是 6 位数字"
|
||||
errInvalidTaskPayload = "任务参数无效"
|
||||
errMailSubjectRequired = "邮件主题不能为空"
|
||||
errMailBodyRequired = "邮件内容不能为空"
|
||||
errSMTPNotConfigured = "SMTP 未配置"
|
||||
errEmailCacheUnavailable = "缓存服务不可用,无法保存验证码"
|
||||
errSendEmailFailed = "邮件发送失败"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user