sv_adminrole

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role interface {
	List() (roles []*mo_adminrole.Role, err error)
	UpdateRole(user mo_user.UserSelector, roleIds []string) (roles []*mo_adminrole.Role, err error)
}

func New

func New(ctx dbx_context.Context) Role

type RoleUpdate

type RoleUpdate struct {
	User     mo_user.UserSelector `json:"user"`
	NewRoles []string             `json:"new_roles"`
}

Jump to

Keyboard shortcuts

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