Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_PERMISSION int64 = 750
Variables ¶
This section is empty.
Functions ¶
func InitJwtMiddleware ¶
func InitJwtMiddleware(secret []byte)
func StartsWith ¶
Types ¶
type AuthMiddleWare ¶
type AuthMiddleWare struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddlewareBuilder ¶
func NewAuthMiddlewareBuilder(db *sqlx.DB) *AuthMiddleWare
func (*AuthMiddleWare) AuthCheckMiddleware ¶
func (a *AuthMiddleWare) AuthCheckMiddleware(c *gin.Context)
func (*AuthMiddleWare) SetUserCrud ¶
func (a *AuthMiddleWare) SetUserCrud(curd api2go.CRUD)
func (*AuthMiddleWare) SetUserGroupCrud ¶
func (a *AuthMiddleWare) SetUserGroupCrud(curd api2go.CRUD)
func (*AuthMiddleWare) SetUserUserGroupCrud ¶
func (a *AuthMiddleWare) SetUserUserGroupCrud(curd api2go.CRUD)
type GroupPermission ¶
Click to show internal directories.
Click to hide internal directories.