Skip to content

Commit

Permalink
open internal components
Browse files Browse the repository at this point in the history
  • Loading branch information
jun.tang committed Nov 1, 2022
1 parent 6a51e22 commit 448a8ba
Show file tree
Hide file tree
Showing 30 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"gorm.io/gorm"
"gorm.io/gorm/utils/tests"

"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internalopen/model"
)

// GenerateMode generate mode
Expand Down
4 changes: 2 additions & 2 deletions field_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"

"github.com/JasonTangJun/gen/field"
"github.com/JasonTangJun/gen/internal/generate"
"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internalopen/generate"
"github.com/JasonTangJun/gen/internalopen/model"
"gorm.io/gorm/schema"
)

Expand Down
10 changes: 5 additions & 5 deletions generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (
"gorm.io/gorm/schema"

"github.com/JasonTangJun/gen/helper"
"github.com/JasonTangJun/gen/internal/generate"
"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internal/parser"
tmpl "github.com/JasonTangJun/gen/internal/template"
"github.com/JasonTangJun/gen/internal/utils/pools"
"github.com/JasonTangJun/gen/internalopen/generate"
"github.com/JasonTangJun/gen/internalopen/model"
"github.com/JasonTangJun/gen/internalopen/parser"
tmpl "github.com/JasonTangJun/gen/internalopen/template"
"github.com/JasonTangJun/gen/internalopen/utils/pools"
)

// T generic type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internalopen/model"
)

// Clause a symbol of clause, it can be sql condition clause, if clause, where clause, set clause and else clause
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (

"github.com/JasonTangJun/gen/field"
"github.com/JasonTangJun/gen/helper"
"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internal/parser"
"github.com/JasonTangJun/gen/internalopen/model"
"github.com/JasonTangJun/gen/internalopen/parser"
)

// GetQueryStructMeta generate db model by table name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"gorm.io/gorm"
"gorm.io/gorm/schema"

"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internalopen/model"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strconv"
"strings"

"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internal/parser"
"github.com/JasonTangJun/gen/internalopen/model"
"github.com/JasonTangJun/gen/internalopen/parser"
)

// InterfaceMethod interface's method
Expand Down
4 changes: 2 additions & 2 deletions internal/generate/query.go → internalopen/generate/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"gorm.io/gorm/schema"

"github.com/JasonTangJun/gen/field"
"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internal/parser"
"github.com/JasonTangJun/gen/internalopen/model"
"github.com/JasonTangJun/gen/internalopen/parser"
)

type FieldParser interface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internalopen/model"
)

// NewSection create and initialize Sections
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"gorm.io/gorm"

"github.com/JasonTangJun/gen/internal/model"
"github.com/JasonTangJun/gen/internalopen/model"
)

// ITableInfo table info interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/JasonTangJun/gen/internal/parser"
"github.com/JasonTangJun/gen/internalopen/parser"
)

//GetTestParamInTmpl return param list
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (i *InterfaceSet) getInterfaceFromFile(filename string, name, Package strin

// Param parameters in method
type Param struct { // (user model.User)
PkgPath string // package's path: internal/model
PkgPath string // package's path: internalopen/model
Package string // package's name: model
Name string // param's name: user
Type string // param's type: User
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 448a8ba

Please sign in to comment.