...
|
...
|
@@ -39,28 +39,28 @@ func (l *SearchTableByModuleLogic) SearchTableByModule(req *types.SearchTableByM |
|
|
}
|
|
|
result["导入模块"] = newList(list)
|
|
|
}, func() {
|
|
|
//list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
|
|
|
// Token: req.Token,
|
|
|
// TableTypes: []string{bytelib.SchemaTable},
|
|
|
// Module: bytelib.ModuleQuerySetCenter,
|
|
|
// ReturnGroupItem: true,
|
|
|
//})
|
|
|
//if err != nil {
|
|
|
// batchError.Add(err)
|
|
|
//}
|
|
|
//result["拆解模块"] = newList(list)
|
|
|
list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
|
|
|
Token: req.Token,
|
|
|
TableTypes: []string{bytelib.SchemaTable},
|
|
|
Module: bytelib.ModuleQuerySetCenter,
|
|
|
ReturnGroupItem: true,
|
|
|
})
|
|
|
if err != nil {
|
|
|
batchError.Add(err)
|
|
|
}
|
|
|
result["拆解模块"] = newList(list)
|
|
|
}, func() {
|
|
|
//list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
|
|
|
// Token: req.Token,
|
|
|
// TableTypes: []string{bytelib.CalculateItem, bytelib.CalculateSet},
|
|
|
// Module: bytelib.ModuleCalculateCenter,
|
|
|
// ReturnGroupItem: true,
|
|
|
// ExcludeTables: []int{0},
|
|
|
//})
|
|
|
//if err != nil {
|
|
|
// batchError.Add(err)
|
|
|
//}
|
|
|
//result["计算模块"] = newList(list)
|
|
|
list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
|
|
|
Token: req.Token,
|
|
|
TableTypes: []string{bytelib.CalculateItem, bytelib.CalculateSet},
|
|
|
Module: bytelib.ModuleCalculateCenter,
|
|
|
ReturnGroupItem: true,
|
|
|
ExcludeTables: []int{0},
|
|
|
})
|
|
|
if err != nil {
|
|
|
batchError.Add(err)
|
|
|
}
|
|
|
result["计算模块"] = newList(list)
|
|
|
})
|
|
|
if err = batchError.Err(); err != nil {
|
|
|
logx.Error(err)
|
...
|
...
|
|