feat: update ui
This commit is contained in:
@@ -50,25 +50,25 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
))
|
||||
|
||||
// 注册路由组: posts
|
||||
router.Get("/", DataFunc3(
|
||||
router.Get("/api/posts", DataFunc3(
|
||||
r.posts.List,
|
||||
Query[requests.Pagination]("pagination"),
|
||||
Query[ListQuery]("query"),
|
||||
Local[*model.Users]("user"),
|
||||
))
|
||||
|
||||
router.Get("/show/:id", DataFunc1(
|
||||
router.Get("/api/posts/show/:id", DataFunc1(
|
||||
r.posts.Show,
|
||||
PathParam[int64]("id"),
|
||||
))
|
||||
|
||||
router.Get("/mine", DataFunc2(
|
||||
router.Get("/api/posts/mine", DataFunc2(
|
||||
r.posts.Mine,
|
||||
Query[requests.Pagination]("pagination"),
|
||||
Query[ListQuery]("query"),
|
||||
))
|
||||
|
||||
router.Get("/buy/:id", Func1(
|
||||
router.Get("/api/posts/buy/:id", Func1(
|
||||
r.posts.Buy,
|
||||
PathParam[int64]("id"),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user