在 fast-forward 到 origin/main 后解决 music logic/repo 冲突,SQL 与模型统一 t_* 表名;Makefile 修正 golangci-lint 变量并令 test/deploy 依赖 lint;补齐 admin/transport 等 lint 修复与 music logic 单测以满足覆盖率门禁。 Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
706 B
Go
23 lines
706 B
Go
package logic
|
|
|
|
import (
|
|
"spark-server/internal/module/meta/entity"
|
|
smsentity "spark-server/internal/module/sms/entity"
|
|
"spark-server/internal/pkg/i18n"
|
|
)
|
|
|
|
func verificationPurpose(lang i18n.Lang) []entity.Item {
|
|
return []entity.Item{
|
|
item(lang, "verification_purpose", "login", int(smsentity.PurposeLogin)),
|
|
item(lang, "verification_purpose", "account_delete", int(smsentity.PurposeAccountDelete)),
|
|
}
|
|
}
|
|
|
|
func phoneCarrier(lang i18n.Lang) []entity.Item {
|
|
return []entity.Item{
|
|
item(lang, "phone_carrier", "mobile", int(smsentity.CarrierMobile)),
|
|
item(lang, "phone_carrier", "unicom", int(smsentity.CarrierUnicom)),
|
|
item(lang, "phone_carrier", "telecom", int(smsentity.CarrierTelecom)),
|
|
}
|
|
}
|