Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedGroup ¶
type OrderedGroup struct { gorm.Model ParentID uint // The ID of its parent Group Parent Group `gorm:"AssociationForeignKey:ParentID;unique_index:idx_group_order"` RefID uint // The ID of its representing Group Ref Group `gorm:"AssociationForeignKey:RefID"` Order uint `gorm:"unique_index:idx_group_order"` }
func (OrderedGroup) Place ¶
func (g OrderedGroup) Place() uint
type OrderedItem ¶
type OrderedItem struct { gorm.Model ParentID uint // The ID of its parent Group Parent Group `gorm:"AssociationForeignKey:ParentID;unique_index:idx_item_order"` RefID uint // The ID of its representing Group Ref Item `gorm:"AssociationForeignKey:RefID"` Order uint `gorm:"unique_index:idx_item_order"` }
func (OrderedItem) Place ¶
func (i OrderedItem) Place() uint
Click to show internal directories.
Click to hide internal directories.