正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -33,8 +33,10 @@ func (tableService *TableService) ShowBusinessTables(ctx *domain.Context, cmd *q | @@ -33,8 +33,10 @@ func (tableService *TableService) ShowBusinessTables(ctx *domain.Context, cmd *q | ||
33 | } | 33 | } |
34 | result := make([]map[string]interface{}, 0) | 34 | result := make([]map[string]interface{}, 0) |
35 | for _, t := range response.TableFullNames { | 35 | for _, t := range response.TableFullNames { |
36 | + simpleName := strings.Split(t, ".") | ||
36 | result = append(result, map[string]interface{}{ | 37 | result = append(result, map[string]interface{}{ |
37 | - "name": t, | 38 | + "name": t, |
39 | + "simpleName": simpleName[len(simpleName)-1], | ||
38 | }) | 40 | }) |
39 | } | 41 | } |
40 | return map[string]interface{}{ | 42 | return map[string]interface{}{ |
-
请 注册 或 登录 后发表评论