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)
Click to show internal directories.
Click to hide internal directories.