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

@@ -44,7 +44,7 @@ func (in *@{.varName}DeleteInp) Filter(ctx context.Context) (err error) {
type @{.varName}DeleteModel struct{}
@{end}
@{ if eq .options.Step.HasView true }
@{ if or (eq .options.Step.HasView true) (eq .options.Step.HasEdit true) }
// @{.varName}ViewInp 获取指定@{.tableComment}信息
type @{.varName}ViewInp struct {
@{.pk.GoName} @{.pk.GoType} `json:"@{.pk.TsName}" v:"required#@{.pk.Dc}不能为空" dc:"@{.pk.Dc}"`