manager

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.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 Auth

type Auth struct {
	AuthID   int64     `json:"auth_id"`
	System   string    `json:"-"`
	AuthName string    `json:"auth_name"`
	AuthFlag string    `json:"auth_flag"`
	CTime    time.Time `json:"-"`
	MTime    time.Time `json:"-"`
}

Auth for manager.

type Auths

type Auths []*Auth

Auths Auth sorted.

func (Auths) Len

func (a Auths) Len() int

func (Auths) Less

func (a Auths) Less(i, j int) bool

func (Auths) Swap

func (a Auths) Swap(i, j int)

type Model

type Model struct {
	ModelID       int64     `json:"model_id"`
	System        string    `json:"-"`
	ModelName     string    `json:"model_name"`
	ModelFlag     string    `json:"model_flag"`
	HasDependence bool      `json:"has_dependence"`
	GitURL        string    `json:"git_url"`
	Count         int64     `json:"count"`
	CTime         time.Time `json:"-"`
	MTime         time.Time `json:"-"`
}

Model for manager.

type Models

type Models []*Model

Models model sorted.

func (Models) Len

func (a Models) Len() int

func (Models) Less

func (a Models) Less(i, j int) bool

func (Models) Swap

func (a Models) Swap(i, j int)

type Role

type Role struct {
	RoleID   int64             `json:"role_id"`
	System   string            `json:"-"`
	RoleName string            `json:"role_name"`
	Auths    map[string]*Auth  `json:"auths"`
	Models   map[string]*Model `json:"models"`
	CTime    time.Time         `json:"-"`
	MTime    time.Time         `json:"-"`
}

Role for manager.

type Roles

type Roles []*Role

Roles Role sorted.

func (Roles) Len

func (r Roles) Len() int

func (Roles) Less

func (r Roles) Less(i, j int) bool

func (Roles) Swap

func (r Roles) Swap(i, j int)

type User

type User struct {
	UserID   int64     `json:"user_id"`
	System   string    `json:"-"`
	UserName string    `json:"user_name"`
	RoleID   int64     `json:"role_id"`
	RoleName string    `json:"role_name"`
	CTime    time.Time `json:"-"`
	MTime    time.Time `json:"-"`
}

User for manager.

type Users

type Users []*User

Users User sorted.

func (Users) Len

func (u Users) Len() int

func (Users) Less

func (u Users) Less(i, j int) bool

func (Users) Swap

func (u Users) Swap(i, j int)

Jump to

Keyboard shortcuts

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