重命名包为 core

This commit is contained in:
2025-05-07 17:38:27 +08:00
parent 60bbe47368
commit 0a16f9923c
43 changed files with 349 additions and 347 deletions

View File

@@ -2,7 +2,7 @@ package handlers
import (
"platform/web/auth"
"platform/web/common"
"platform/web/core"
m "platform/web/models"
q "platform/web/queries"
s "platform/web/services"
@@ -114,7 +114,7 @@ func UpdatePassword(c *fiber.Ctx) error {
// 验证手机令牌
if req.Phone == "" || req.Code == "" {
return common.NewErr("user", "手机号码和验证码不能为空")
return core.NewErr("user", "手机号码和验证码不能为空")
}
err = s.Verifier.VerifySms(c.Context(), req.Phone, req.Code)
if err != nil {