models

package
v0.0.0-...-0c811c1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Perm

type Perm struct {
	*gorm.Model
	*proto.PermInfo
	Roles []*Role `gorm:"many2many:role_perms;"`
}

Perm Model

type Role

type Role struct {
	*gorm.Model
	*proto.RoleInfo
	User  []*User `gorm:"many2many:user_roles;"`
	Perms []*Perm `gorm:"many2many:role_perms;"`
}

Role Model

type User

type User struct {
	*common.Model
	*proto.UserAuth
	Roles []*Role `gorm:"many2many:user_roles;"`
}

User Model (for UserAuth)

Jump to

Keyboard shortcuts

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