添加编辑项目类型
This commit is contained in:
parent
473000f4a0
commit
701cc2aae2
@ -14,17 +14,19 @@ export default router.post(
|
|||||||
type: z.string().optional().nullable(),
|
type: z.string().optional().nullable(),
|
||||||
artStyle: z.string().optional().nullable(),
|
artStyle: z.string().optional().nullable(),
|
||||||
videoRatio: z.string().optional().nullable(),
|
videoRatio: z.string().optional().nullable(),
|
||||||
|
projectType: z.string().optional().nullable(),
|
||||||
}),
|
}),
|
||||||
async (req, res) => {
|
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({
|
await u.db("t_project").where("id", id).update({
|
||||||
intro,
|
intro,
|
||||||
type,
|
type,
|
||||||
artStyle,
|
artStyle,
|
||||||
videoRatio,
|
videoRatio,
|
||||||
|
projectType,
|
||||||
});
|
});
|
||||||
|
|
||||||
res.status(200).send(success({ message: "修改成功" }));
|
res.status(200).send(success({ message: "修改成功" }));
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user