group

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateService

type CreateService struct {
	Name string `form:"name" json:"name" binding:"required"`
	Code string `form:"code" json:"code" binding:"required"`
}

CreateService 用户组添加服务

func (CreateService) Execute

func (receiver CreateService) Execute() error

type DeleteService

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

DeleteService 用户组删除服务

func (DeleteService) Execute

func (receiver DeleteService) Execute() error

type ModuleService

type ModuleService struct {
	GroupID  int `form:"groupId" json:"groupId" binding:"required"`
	ModuleID int `form:"moduleId" json:"moduleId" binding:"required"`
}

RoleService 组织角色服务

func (*ModuleService) Add

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

func (*ModuleService) Remove

func (receiver *ModuleService) Remove() error

type RoleService

type RoleService struct {
	GroupID int `form:"groupId" json:"groupId" binding:"required"`
	RoleID  int `form:"roleId" json:"roleId" binding:"required"`
}

RoleService 组织角色服务

func (*RoleService) Add

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

func (*RoleService) Remove

func (receiver *RoleService) Remove() error

type UpdateService

type UpdateService struct {
	ID   int    `form:"id" json:"id" binding:"required"`
	Name string `form:"name" json:"name" binding:"required"`
	Code string `form:"code" json:"code" binding:"required"`
}

UpdateService 用户组更新服务

func (UpdateService) Execute

func (receiver UpdateService) Execute() 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