feat: add orders
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
type Routes struct {
|
||||
log *log.Entry `inject:"false"`
|
||||
medias *medias
|
||||
orders *orders
|
||||
posts *posts
|
||||
uploads *uploads
|
||||
users *users
|
||||
@@ -38,6 +39,13 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
Query[ListQuery]("query"),
|
||||
))
|
||||
|
||||
// 注册路由组: orders
|
||||
router.Get("/v1/admin/orders", DataFunc2(
|
||||
r.orders.List,
|
||||
Query[requests.Pagination]("pagination"),
|
||||
Query[OrderListQuery]("query"),
|
||||
))
|
||||
|
||||
// 注册路由组: posts
|
||||
router.Get("/v1/admin/posts", DataFunc2(
|
||||
r.posts.List,
|
||||
|
||||
Reference in New Issue
Block a user