重命名包为 core
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user