feat: update post edit page
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
. "go.ipao.vip/atom/fen"
|
||||
"mime/multipart"
|
||||
"quyun/app/requests"
|
||||
"quyun/database/schemas/public/model"
|
||||
)
|
||||
|
||||
// @provider contracts.HttpRoute atom.GroupRoutes
|
||||
@@ -53,7 +52,7 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
router.Put("/v1/admin/posts/:id", Func2(
|
||||
r.posts.Update,
|
||||
PathParam[int64]("id"),
|
||||
Body[model.Posts]("form"),
|
||||
Body[PostForm]("form"),
|
||||
))
|
||||
|
||||
router.Delete("/v1/admin/posts/:id", Func1(
|
||||
|
||||
Reference in New Issue
Block a user