feat: update post edit page

This commit is contained in:
yanghao05
2025-04-09 21:16:55 +08:00
parent 1f27611dc7
commit 500e3e199a
6 changed files with 117 additions and 29 deletions

View File

@@ -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(