mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-03 15:56:22 +00:00
✨ feat: 修复创建帖子时参数验证失败的处理逻辑,并更新博客卡片链接路径
This commit is contained in:
@ -29,6 +29,7 @@ func (p *PostController) Create(ctx context.Context, c *app.RequestContext) {
|
||||
var req dto.CreateOrUpdatePostReq
|
||||
if err := c.BindAndValidate(&req); err != nil {
|
||||
resps.BadRequest(c, resps.ErrParamInvalid)
|
||||
return
|
||||
}
|
||||
postID, err := p.service.CreatePost(ctx, &req)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user