Skip to content

Commit

Permalink
Revert "define default attributes model"
Browse files Browse the repository at this point in the history
This reverts commit e99c9d8.
  • Loading branch information
calebx committed Dec 27, 2020
1 parent e99c9d8 commit 8ac3615
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions nested_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,15 @@ const (
MoveDirectionInner MoveDirection = 0
)

// NestedModel includes a list of default attributes
type NestedModel struct {
type nestedItem struct {
ID int64
ParentID sql.NullInt64
Depth int
Rgt int
Lft int
ChildrenCount int
}

type nestedItem struct {
NestedModel
TableName string
DbNames map[string]string
TableName string
DbNames map[string]string
}

// parseNode parse a gorm struct into an internal nested item struct
Expand Down

0 comments on commit 8ac3615

Please sign in to comment.