mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-22 12:48:17 +00:00
- 优化了AI规则,更利于大家规范化使用VibeCoding - skills增加了在线板块,可以直接下载在线的skills。 - skill增加了一键打包能力 - 角色页面可以把角色可以直接分配给用户 - 菜单页面可以直接把菜单分配给角色 - API页面可以直接把API分配给角色 - 升级了AWS S3的版本 - 修复了富文本组件样式缺失的bug - dashboard页面样式调整 - 优化了插件市场的UI,增加了分享和点赞能力 - 优化了vite环境变量的使用规则
34 lines
932 B
Go
34 lines
932 B
Go
package request
|
|
|
|
import (
|
|
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/model/system"
|
|
)
|
|
|
|
// AddMenuAuthorityInfo Add menu authority info structure
|
|
type AddMenuAuthorityInfo struct {
|
|
Menus []system.SysBaseMenu `json:"menus"`
|
|
AuthorityId uint `json:"authorityId"` // 角色ID
|
|
}
|
|
|
|
// SetMenuAuthorities 通过菜单ID全量覆盖关联角色列表
|
|
type SetMenuAuthorities struct {
|
|
MenuId uint `json:"menuId" form:"menuId"` // 菜单ID
|
|
AuthorityIds []uint `json:"authorityIds" form:"authorityIds"` // 角色ID列表
|
|
}
|
|
|
|
func DefaultMenu() []system.SysBaseMenu {
|
|
return []system.SysBaseMenu{{
|
|
GVA_MODEL: global.GVA_MODEL{ID: 1},
|
|
ParentId: 0,
|
|
Path: "dashboard",
|
|
Name: "dashboard",
|
|
Component: "view/dashboard/index.vue",
|
|
Sort: 1,
|
|
Meta: system.Meta{
|
|
Title: "仪表盘",
|
|
Icon: "setting",
|
|
},
|
|
}}
|
|
}
|