Merge branch 'main' into i18n-dev-new

This commit is contained in:
Mohamed Hassan
2024-08-04 10:03:55 +03:00
6 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (a *AutoCodeTemplateApi) Create(c *gin.Context) {
err = autoCodeTemplateService.Create(c.Request.Context(), info)
if err != nil {
global.GVA_LOG.Error("创建失败!", zap.Error(err))
response.FailWithMessage("创建失败", c)
response.FailWithMessage(err.Error(), c)
} else {
response.OkWithMessage("创建成功", c)
}