rolemenu

package
v0.0.0-...-eb626f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModelDB

func GetModelDB(ctx context.Context, defDB *gorm.DB) *gorm.DB

func NewRepository

func NewRepository(db *gorm.DB) rolemenu.Repository

Types

type Model

type Model struct {
	ID       string `gorm:"column:id;primary_key;size:36;"`
	RoleID   string `gorm:"column:role_id;size:36;index;default:'';not null;"`
	MenuID   string `gorm:"column:menu_id;size:36;index;default:'';not null;"`
	ActionID string `gorm:"column:action_id;size:36;index;default:'';not null;"`
}

func (Model) TableName

func (Model) TableName() string

func (Model) ToDomain

func (a Model) ToDomain() *rolemenu.RoleMenu

Jump to

Keyboard shortcuts

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