This is a breaking change that renames the entire project from "Carrot BBS" to "WithYou".
The Go module name has been changed from `carrot_bbs` to `with_you`, which requires all import paths to be updated throughout the codebase and by external consumers. BREAKING CHANGE: Module name changed from carrot_bbs to with_you. All imports and dependencies must be updated from carrot_bbs/* to with_you/*.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package service
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"carrot_bbs/internal/cache"
|
||||
"carrot_bbs/internal/pkg/utils"
|
||||
"with_you/internal/cache"
|
||||
"with_you/internal/pkg/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -201,15 +201,15 @@ func (s *emailCodeServiceImpl) VerifyCode(purpose, email, code string) error {
|
||||
func verificationEmailMeta(purpose string) (subject string, sceneText string) {
|
||||
switch purpose {
|
||||
case CodePurposeRegister:
|
||||
return "Carrot BBS 注册验证码", "注册账号"
|
||||
return "WithYou 注册验证码", "注册账号"
|
||||
case CodePurposePasswordReset:
|
||||
return "Carrot BBS 找回密码验证码", "找回密码"
|
||||
return "WithYou 找回密码验证码", "找回密码"
|
||||
case CodePurposeEmailVerify:
|
||||
return "Carrot BBS 邮箱验证验证码", "验证邮箱"
|
||||
return "WithYou 邮箱验证验证码", "验证邮箱"
|
||||
case CodePurposeChangePassword:
|
||||
return "Carrot BBS 修改密码验证码", "修改密码"
|
||||
return "WithYou 修改密码验证码", "修改密码"
|
||||
default:
|
||||
return "Carrot BBS 验证码", "身份验证"
|
||||
return "WithYou 验证码", "身份验证"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ func buildVerificationEmailHTML(sceneText, code string) string {
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Carrot BBS 验证码</title>
|
||||
<title>WithYou 验证码</title>
|
||||
</head>
|
||||
<body style="margin:0;padding:0;background:#f4f6fb;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'PingFang SC','Microsoft YaHei',sans-serif;color:#1f2937;">
|
||||
<table role="presentation" width="100%%" cellspacing="0" cellpadding="0" style="background:#f4f6fb;padding:24px 12px;">
|
||||
@@ -228,7 +228,7 @@ func buildVerificationEmailHTML(sceneText, code string) string {
|
||||
<table role="presentation" width="100%%" cellspacing="0" cellpadding="0" style="max-width:560px;background:#ffffff;border-radius:14px;overflow:hidden;box-shadow:0 8px 30px rgba(15,23,42,0.08);">
|
||||
<tr>
|
||||
<td style="background:linear-gradient(135deg,#ff6b35,#ff8f66);padding:24px 28px;color:#ffffff;">
|
||||
<div style="font-size:22px;font-weight:700;line-height:1.2;">Carrot BBS</div>
|
||||
<div style="font-size:22px;font-weight:700;line-height:1.2;">WithYou</div>
|
||||
<div style="margin-top:6px;font-size:14px;opacity:0.95;">%s 验证</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -247,7 +247,7 @@ func buildVerificationEmailHTML(sceneText, code string) string {
|
||||
<tr>
|
||||
<td style="padding:14px 28px;background:#f8fafc;border-top:1px solid #e5e7eb;color:#94a3b8;font-size:12px;line-height:1.7;">
|
||||
此邮件由系统自动发送,请勿直接回复。<br/>
|
||||
© Carrot BBS
|
||||
© WithYou
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user