department

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDepartment

func AddDepartment(c *gin.Context)

AddDepartment 用于处理添加部门接口的请求

func AddDepartmentUser

func AddDepartmentUser(c *gin.Context)

AddDepartmentUser 处理添加/删除部门成员接口

func DelDepartment

func DelDepartment(c *gin.Context)

DelDepartment 用于处理删除部门接口的请求

func DepartmentOrder

func DepartmentOrder(c *gin.Context)

DepartmentOrder 用于处理调整部门列表顺序的请求

func GetDepartmentUsers

func GetDepartmentUsers(department int, areaID uint64, managerID *int) (infoUsers []departmentUser, err error)

func GetDeviceByDepartmentID

func GetDeviceByDepartmentID(departmentID int, c *gin.Context) (infoDevices []location.InfoDevice, err error)

GetDeviceByDepartmentID 获取部门下的设备

func InfoDepartment

func InfoDepartment(c *gin.Context)

InfoDepartment 返回部门信息

func ListDepartment

func ListDepartment(c *gin.Context)

func RegisterDepartmentRouter

func RegisterDepartmentRouter(r gin.IRouter)

RegisterDepartmentRouter 注册与部门相关的路由及其处理函数

func UpdateDepartment

func UpdateDepartment(c *gin.Context)

UpdateDepartment 处理部门更新

Types

type Department

type Department struct {
	ID        int    `json:"id"`
	Name      string `json:"name"`
	Sort      int    `json:"sort"`
	UserCount int    `json:"user_count"`
}

Department 部门信息

Jump to

Keyboard shortcuts

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