categoryGroupPermissions

package
v0.2.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PermissionRead   int8 = 1
	PermissionReply  int8 = 2
	PermissionCreate int8 = 3
	PermissionManage int8 = 4
)
View Source
const (
	StatusDisabled int8 = 0
	StatusEnabled  int8 = 1
)

Variables

This section is empty.

Functions

func Save

func Save(entity *Entity) error

Types

type Entity

type Entity struct {
	Id              uint64    `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"`
	CategoryId      uint64    `` /* 128-byte string literal not displayed */
	AccessGroupId   uint64    `` /* 205-byte string literal not displayed */
	PermissionLevel int8      `gorm:"column:permission_level;type:tinyint;not null;default:0;" json:"permissionLevel"`
	Status          int8      `` /* 137-byte string literal not displayed */
	CreatedAt       time.Time `gorm:"column:created_at;autoCreateTime;<-:create;" json:"createdAt"`
	UpdatedAt       time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}

func ByCategoryIDs

func ByCategoryIDs(categoryIDs []uint64) ([]Entity, error)

func EnabledByGroupID

func EnabledByGroupID(groupID uint64) ([]Entity, error)

func (*Entity) TableName

func (itself *Entity) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL