model

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysClient

type SysClient struct {
	base.PolestarModel
	ClientId             string `gorm:"type:varchar(20);index;not null"`
	ClientSecret         string `gorm:"type:varchar(100)"`
	GrantTypes           string `gorm:"type:varchar(200)"`
	Scope                string `gorm:"type:varchar(200)"`
	AccessTokenDuration  int    `gorm:"type:int;default:20"`
	RefreshTokenDuration int    `gorm:"type:int;default:10080"`
	Comment              string `gorm:"type:varchar(200)"`
	Status               string `gorm:"type:varchar(2);default:\"00\""`
}

type SysPermission

type SysPermission struct {
	base.PolestarModel
	EnName  string `gorm:"type:varchar(45);index;not null"`
	Name    string `gorm:"type:varchar(45)"`
	Comment string `gorm:"type:varchar(400)"`
	Status  string `gorm:"type:varchar(2);default:\"00\""`
}

type SysRole

type SysRole struct {
	base.PolestarModel
	EnName  string `gorm:"type:varchar(20);index;not null"`
	Name    string `gorm:"type:varchar(20)"`
	Comment string `gorm:"type:varchar(400)"`
	Status  string `gorm:"type:varchar(2);default:\"00\""`
}

type SysRolePermission

type SysRolePermission struct {
	base.PolestarModel
	RoleId       int `gorm:"type:int(10)"`
	PermissionId int `gorm:"type:int(10)"`
}

type SysUser

type SysUser struct {
	base.PolestarModel
	UserName    string `gorm:"type:varchar(100);unique_index;not null"`
	Name        string `gorm:"type:varchar(45)"`
	Password    string `gorm:"type:varchar(200)"`
	HeaderImage string `gorm:"type:varchar(200)"`
	Comment     string `gorm:"type:varchar(400)"`
	Status      string `gorm:"type:varchar(2);default:\"00\""`
}

type SysUserRole

type SysUserRole struct {
	base.PolestarModel
	UserId int `gorm:"type:int(10)"`
	RoleId int `gorm:"type:int(10)"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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