auth

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	ID      uint64 `xorm:"pk autoincr not null unique 'id'"`
	Code    int    `xorm:"not null unique comment('auth code')"`
	Feature string `xorm:"varchar(100) comment('auth function')"`
}

Auth 权限

type Role

type Role struct {
	ID       uint64 `xorm:"pk  autoincr 'id'"`
	UID      uint64 `xorm:"not null 'user_id'"`
	AuthID   uint64 `xorm:"not null unique 'auth_id'"`
	RoleName string `xorm:"varchar(18) not null comment('roles')"`
}

Role 角色控制

Jump to

Keyboard shortcuts

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