hotgo/server/internal/model/tree.go

24 lines
629 B
Go
Raw Normal View History

2022-11-24 23:37:34 +08:00
// Package model
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2023 HotGo CLI
2022-11-24 23:37:34 +08:00
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
2022-02-25 17:11:17 +08:00
//
package model
2022-11-24 23:37:34 +08:00
import "hotgo/internal/model/entity"
2022-02-25 17:11:17 +08:00
2022-11-24 23:37:34 +08:00
// TreeMenu 菜单树
2022-02-25 17:11:17 +08:00
type TreeMenu struct {
entity.AdminMenu
Children []*TreeMenu `json:"children"`
}
2022-11-24 23:37:34 +08:00
// LabelTreeMenu 菜单kv树
2022-02-25 17:11:17 +08:00
type LabelTreeMenu struct {
entity.AdminMenu
Key int64 `json:"key" description:"键名"`
Label string `json:"label" description:"键标签"`
Children []*LabelTreeMenu `json:"children"`
}