This commit is contained in:
孟帅
2024-04-22 23:08:40 +08:00
parent 82483bd7b9
commit e144b12580
445 changed files with 17457 additions and 6708 deletions

View File

@@ -11,7 +11,7 @@ import (
"context"
"@{.importApi}"
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/@{.templateGroup}in"
"@{.importInput}"
"@{.importService}"
"hotgo/utility/validate"
)
@@ -98,4 +98,12 @@ func (c *c@{.varName}) Switch(ctx context.Context, req *@{.varName | ToLower}.Sw
err = service.@{.servFunName}().Switch(ctx, &req.@{.varName}SwitchInp)
return
}
@{end}
@{end}
@{ if eq .options.Step.IsTreeTable true }
// TreeOption 获取@{.tableComment}关系树选项
func (c *c@{.varName}) TreeOption(ctx context.Context, req *@{.varName | ToLower}.TreeOptionReq) (res *@{.varName | ToLower}.TreeOptionRes, err error) {
data, err := service.@{.servFunName}().TreeOption(ctx)
res = (*@{.varName | ToLower}.TreeOptionRes)(&data)
return
}
@{end}