添加编辑项目类型

This commit is contained in:
小帅 2026-03-03 17:19:26 +08:00
parent 473000f4a0
commit 701cc2aae2

View File

@ -14,17 +14,19 @@ export default router.post(
type: z.string().optional().nullable(),
artStyle: z.string().optional().nullable(),
videoRatio: z.string().optional().nullable(),
projectType: z.string().optional().nullable(),
}),
async (req, res) => {
const { id, intro, type, artStyle, videoRatio } = req.body;
const { id, intro, type, artStyle, videoRatio, projectType } = req.body;
await u.db("t_project").where("id", id).update({
intro,
type,
artStyle,
videoRatio,
projectType,
});
res.status(200).send(success({ message: "修改成功" }));
}
},
);