admin

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbModels

func DbModels() []interface{}

func NewOplog

func NewOplog() user.OpLogUserI

func QueryDbModels

func QueryDbModels() []interface{}

Types

type Admin

type Admin struct {
	user_session_default.User
	Roles []Role `gorm:"-:all" json:"roles,omitempty"`
}

func NewAdmin

func NewAdmin() *Admin

type AdminControllers

type AdminControllers = user.UsersWithSessionBaseConfig[*Admin]

type AdminSession

type AdminSession struct {
	auth_session.SessionBase
}

func NewAdminSession

func NewAdminSession() *AdminSession

type AdminSessionClient

type AdminSessionClient struct {
	user_session_default.UserSessionClient
}

func NewAdminSessionClient

func NewAdminSessionClient() *AdminSessionClient

type Manager

func NewManager

func NewManager(controllers ...AdminControllers) *Manager

func (*Manager) AddAdmin

func (m *Manager) AddAdmin(ctx op_context.Context, login string, password string, phone string) (*Admin, error)

type OpLogAdmin

type OpLogAdmin struct {
	user.OpLogUser
}

type Role

type Role struct {
	common.IDBase
	Name string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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