feat: update

This commit is contained in:
yanghao05
2025-04-15 21:34:39 +08:00
parent ca08568e1a
commit 8d601d456e
3 changed files with 71 additions and 10 deletions

View File

@@ -50,7 +50,7 @@ func (r *Routes) Register(router fiber.Router) {
))
// 注册路由组: posts
router.Get("/posts", DataFunc3(
router.Get("/", DataFunc3(
r.posts.List,
Query[requests.Pagination]("pagination"),
Query[ListQuery]("query"),
@@ -68,7 +68,7 @@ func (r *Routes) Register(router fiber.Router) {
Query[ListQuery]("query"),
))
router.Get("/buy/:id", DataFunc1(
router.Get("/buy/:id", Func1(
r.posts.Buy,
PathParam[int64]("id"),
))