static

package
v0.0.0-...-be8d9e5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	gorm.Model
	Account  string `gorm:"account;type:varchar(100);not null;default:''"`
	Name     string `gorm:"name;type:varchar(100);not null;default:''"`
	Password string `gorm:"password;type:char(60);not null;default:''"`
}
type Menu struct {
	gorm.Model
	ParentID  int    `gorm:"parent_id;type:int;not null;default:0"`
	Title     string `gorm:"title;type:varchar(100);not null;default:''"`
	Key       string `gorm:"key;type:char(56);not null;default:''"`
	Component string `gorm:"component;type:varchar(100);not null;default:''"`
	Icon      string `gorm:"icon;type:varchar(100);not null;default:''"`
	Meta      string `gorm:"meta;type:varchar(255);not null;default:''"`
}

type Permission

type Permission struct {
	gorm.Model
	Name string `gorm:"name;type:int;not null;default:0;comment:''"`
	Hash string `gorm:"hash;type:int;not null;default:0;comment:''"`
}

type PermissionUrl

type PermissionUrl struct {
	gorm.Model
	PermissionID int `gorm:"permission_id;type:int;not null;default:0"`
	UrlID        int `gorm:"url_id;type:int;not null;default:0"`
}

type Role

type Role struct {
	gorm.Model
	Name   string `gorm:"name;type:varchar(100);not null;default:''"`
	Status int8   `gorm:"status;type:tinyint(1);not null;default:'1'"`
}

type RolePermission

type RolePermission struct {
	gorm.Model
	PermissionID int `gorm:"permission_id;type:int;not null;default:''"`
	RoleID       int `gorm:"role_id;type:int;not null;default:''"`
}

type Url

type Url struct {
	gorm.Model
	Name   string `gorm:"name;type:varchar(100);not null;default:''"`
	Method string `gorm:"method;type:varchar(50);not null;default:''"`
	Path   string `gorm:"path;type:varchar(50);not null;default:''"`
}

Jump to

Keyboard shortcuts

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