🎨 优化文章上传接口

This commit is contained in:
2025-10-11 16:14:30 +08:00
parent d593476c51
commit 4fc979aaad
4 changed files with 53 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ import (
type ArticleApi struct{}
func (ArticleApi) Create(ctx *gin.Context) {
var p article.Article
var p request.CreateArticle
if err := ctx.ShouldBind(&p); err != nil {
r.FailWithMessage(err.Error(), ctx)
global.GVA_LOG.Error("参数有误!", zap.Error(err))