member

package
v0.0.0-...-7c3836c Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMemberNamespaceGet = errors.New("Namespace 获取错误")
	ErrMemberGet          = errors.New("用户获取错误")
	ErrMemberList         = errors.New("用户列表获取错误")
	ErrMemberRoleGet      = errors.New("用户角色信息获取错误")
	ErrMemberCount        = errors.New("用户统计错误")
)

Functions

func MakeHandler

func MakeHandler(svc Service, logger log.Logger) http.Handler

Types

type Service

type Service interface {
	// Deprecated: please explicitly pick a version if possible.
	Namespaces(ctx context.Context) (list []map[string]string, err error)
	// Deprecated: please explicitly pick a version if possible.
	Detail(ctx context.Context, id int64) (map[string]interface{}, error)
	// Deprecated: please explicitly pick a version if possible.
	Post(ctx context.Context, username, email, password string, state int64, namespaces []string, roleIds []int64) error
	// Deprecated: please explicitly pick a version if possible.
	Update(ctx context.Context, id int64, username, email, password string, state int64, namespaces []string, roleIds []int64) error
	// Deprecated: please explicitly pick a version if possible.
	List(ctx context.Context, page, limit int, email string) (map[string]interface{}, error)
	// Deprecated: please explicitly pick a version if possible.
	Me(ctx context.Context) (map[string]interface{}, error)
	All(ctx context.Context) (interface{}, error)
}

func NewLoggingService

func NewLoggingService(logger log.Logger, s Service) Service

func NewService

func NewService(logger log.Logger,
	config *config.Config,
	casbin casbin.Casbin,
	store repository.Repository) Service

Jump to

Keyboard shortcuts

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