role

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	Name        string                `json:"name"`        // 角色名
	Description string                `json:"description"` // 角色描述
	Accession   []accession.Accession `json:"accession"`   // 角色拥有的权限
}

func New

func New(name string, description string, accessions []accession.Accession) *Role

func (*Role) AccessionArray

func (r *Role) AccessionArray() (list []string)

Jump to

Keyboard shortcuts

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