mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-27 14:22:41 +08:00
发布v2.15.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user