fix generate HasView

This commit is contained in:
maxbad
2023-05-07 22:57:34 +08:00
parent 67a0a38fd4
commit 788a9d4d2d
7 changed files with 8 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ type ExportReq struct {
type ExportRes struct{}
@{end}
@{ if eq .options.Step.HasView true }
@{ if or (eq .options.Step.HasView true) (eq .options.Step.HasEdit true) }
// ViewReq 获取@{.tableComment}指定信息
type ViewReq struct {
g.Meta `path:"/@{.varName | LcFirst}/view" method:"get" tags:"@{.tableComment}" summary:"获取@{.tableComment}指定信息"`