作者 yangfu

业务表同步

@@ -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{}{