重命名包为 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

@@ -3,7 +3,7 @@ package handlers
import (
"github.com/gofiber/fiber/v2"
"platform/web/auth"
"platform/web/common"
"platform/web/core"
q "platform/web/queries"
"platform/web/services"
)
@@ -11,7 +11,7 @@ import (
// region ListAnnouncements
type ListAnnouncementsRequest struct {
common.PageReq
core.PageReq
}
func ListAnnouncements(c *fiber.Ctx) error {
@@ -53,7 +53,7 @@ func ListAnnouncements(c *fiber.Ctx) error {
}
// 返回结果
return c.JSON(common.PageResp{
return c.JSON(core.PageResp{
Total: int(total),
List: list,
Page: req.GetPage(),