Documentation
¶
Index ¶
Constants ¶
View Source
const ( ScopeGlobal = "global" ScopeCategory = "category" )
View Source
const ( StatusDisabled = 0 StatusEnabled = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entity ¶
type Entity struct {
Id uint64 `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"`
UserId uint64 `` /* 156-byte string literal not displayed */
ScopeType string `` /* 168-byte string literal not displayed */
ScopeId uint64 `` /* 159-byte string literal not displayed */
Status int `` /* 150-byte string literal not displayed */
CreatedBy uint64 `gorm:"column:created_by;type:bigint unsigned;not null;default:0;" json:"createdBy"`
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime;<-:create;" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}
func AllEnabled ¶
func AllEnabled() (entities []*Entity)
func GetByCategoryIds ¶
func GetByUserScope ¶
Click to show internal directories.
Click to hide internal directories.