position

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: 8 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 {
	ParentID int    `form:"parentId" json:"parentId" binding:"required"`
	OfficeID int    `form:"officeId" json:"officeId" binding:"required"`
	Name     string `form:"name" json:"name" binding:"required"`
	Code     string `form:"code" json:"code" binding:"required"`
}

CreateService 职位添加服务

func (CreateService) Execute

func (receiver CreateService) Execute() (err 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 {
	PositionID int `form:"positionId" json:"positionId" 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 {
	PositionID int `form:"positionId" json:"positionId" 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"`
	ParentID int    `form:"parentId" json:"parentId" binding:"required"`
	OfficeID int    `form:"officeId" json:"officeId" 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 {
	OfficeID int `form:"officeId" json:"officeId" binding:"required"`
}

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