hotgo/hotgo-server/app/model/tree.go
2022-02-25 17:11:17 +08:00

24 lines
615 B
Go
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// @Link  https://github.com/bufanyun/hotgo
// @Copyright  Copyright (c) 2022 HotGo CLI
// @Author  Ms <133814250@qq.com>
// @License  https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package model
import "github.com/bufanyun/hotgo/app/model/entity"
//  菜单树
type TreeMenu struct {
entity.AdminMenu
Children []*TreeMenu `json:"children"`
}
//  菜单kl树
type LabelTreeMenu struct {
entity.AdminMenu
Key int64 `json:"key" description:"键名"`
Label string `json:"label" description:"键标签"`
Children []*LabelTreeMenu `json:"children"`
}