cmdb

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

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListVirtualMachine

func ListVirtualMachine(tree string, p *models.PaginationQ) (host []cmdb.VirtualMachine, err error)

Types

type DataRes

type DataRes struct {
	Data []*TreeList `json:"treeData"`
}

type TreeList

type TreeList struct {
	ID       int         `json:"id"`
	Name     string      `json:"name"`
	ParentId int64       `json:"parent_id"`
	Hide     int         `json:"hide"`
	SortId   int         `json:"sort_id"`
	Children []*TreeList `json:"children"`
}

func GetMenu

func GetMenu(pid int, echo int) []*TreeList

GetMenu 生成目录树

Jump to

Keyboard shortcuts

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