perf 改进表格图片、文件展示组件使用方式,减少冗余

fix 修复生成树表时选项加载错误
chore 清理生成代码cli包中的测试文件
This commit is contained in:
孟帅
2024-07-25 16:47:59 +08:00
parent a37d088360
commit 804d5d5e59
121 changed files with 238 additions and 2799 deletions

View File

@@ -3,7 +3,7 @@
// @Copyright Copyright (c) 2024 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
// @AutoGenerate Version 2.15.1
// @AutoGenerate Version 2.15.7
package sys
import (
@@ -75,6 +75,15 @@ func (c *cOptionTreeDemo) Delete(ctx context.Context, req *optiontreedemo.Delete
// TreeOption 获取选项树表关系树选项
func (c *cOptionTreeDemo) TreeOption(ctx context.Context, req *optiontreedemo.TreeOptionReq) (res *optiontreedemo.TreeOptionRes, err error) {
data, err := service.SysOptionTreeDemo().TreeOption(ctx)
res = (*optiontreedemo.TreeOptionRes)(&data)
if err != nil {
return nil, err
}
if len(data) > 0 {
res = (*optiontreedemo.TreeOptionRes)(&data)
} else {
temp := make(optiontreedemo.TreeOptionRes, 0)
res = &temp
}
return
}
}