Skip to content

Commit

Permalink
Merge pull request go-admin-team#695 from zyd/master
Browse files Browse the repository at this point in the history
fix🐛:去除模板中的多余空格
  • Loading branch information
wenjianzhang authored Aug 22, 2022
2 parents dcafcdc + 5b14053 commit 73ac727
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/v4/no_actions/apis.go.template
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (e {{.ClassName}}) GetPage(c *gin.Context) {

err = s.GetPage(&req, p, &list, &count)
if err != nil {
e.Error(500, err, fmt.Sprintf("获取{{.TableComment}} 失败,\r\n失败信息 %s", err.Error()))
e.Error(500, err, fmt.Sprintf("获取{{.TableComment}}失败,\r\n失败信息 %s", err.Error()))
return
}

Expand Down Expand Up @@ -122,7 +122,7 @@ func (e {{.ClassName}}) Insert(c *gin.Context) {

err = s.Insert(&req)
if err != nil {
e.Error(500, err, fmt.Sprintf("创建{{.TableComment}} 失败,\r\n失败信息 %s", err.Error()))
e.Error(500, err, fmt.Sprintf("创建{{.TableComment}}失败,\r\n失败信息 %s", err.Error()))
return
}

Expand Down Expand Up @@ -158,7 +158,7 @@ func (e {{.ClassName}}) Update(c *gin.Context) {

err = s.Update(&req, p)
if err != nil {
e.Error(500, err, fmt.Sprintf("修改{{.TableComment}} 失败,\r\n失败信息 %s", err.Error()))
e.Error(500, err, fmt.Sprintf("修改{{.TableComment}}失败,\r\n失败信息 %s", err.Error()))
return
}
e.OK( req.GetId(), "修改成功")
Expand Down

0 comments on commit 73ac727

Please sign in to comment.