role

package
v0.0.0-...-1b41cfb Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(userName string) bool

Types

type CreateService

type CreateService struct {
	Alias string `form:"alias" json:"alias" binding:"required"`
}

CreateService 角色创建服务

func (*CreateService) Execute

func (r *CreateService) Execute() error

CreateRole 创建角色

type DeleteService

type DeleteService struct {
	ID int `form:"id" json:"id" binding:"required"`
}

DeleteService 角色删除服务

func (*DeleteService) Execute

func (r *DeleteService) Execute() error

DeleteRole 删除角色

type ModuleService

type ModuleService struct {
	RoleID   int `form:"roleId" json:"roleId" binding:"required"`
	ModuleID int `form:"moduleId" json:"moduleId" binding:"required"`
}

ModuleService 角色模块服务

func (*ModuleService) Add

func (receiver *ModuleService) Add() (err error)

func (*ModuleService) Remove

func (receiver *ModuleService) Remove() error

type ProxyService

type ProxyService struct {
	RoleID  int `form:"roleId" json:"roleId" binding:"required"`
	ProxyID int `form:"proxyId" json:"proxyId" binding:"required"`
}

ProxyService 角色模块服务

func (*ProxyService) Add

func (receiver *ProxyService) Add() (err error)

func (*ProxyService) Remove

func (receiver *ProxyService) Remove() error

type ViewService

type ViewService struct {
}

ViewService 查看服务

func (ViewService) Execute

func (receiver ViewService) Execute() (interface{}, error)

Jump to

Keyboard shortcuts

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