Some checks failed
Build and Deploy (service.xpcool.com) / build-and-deploy (push) Failing after 5m7s
- 新增 9 张房屋相关数据表(社区/楼宇/房源/价格快照/交易/设施/社区设施/学区/偏好) - 添加菜单权限种子数据并绑定超级管理员角色 - 生成 DAO 层代码和实体对象 - 实现房屋模块 API 接口(社区/房源/看板)和控制器服务层 - 支持多平台软关联匹配、笋盘标记和低可信度标记功能 - 更新超级管理员账号为 xxcool/xxCool@2026 - 调整 RBAC 菜单结构,移除管理员管理功能,新增日志管理菜单 - 修复 RBAC 安全漏洞,确保禁用角色权限失效 - 重构认证模块,将登录相关接口迁移到统一包结构下 - 移除废弃的管理模块和工具类接口定义 - 为通用工具包添加中文注释和文档说明
99 lines
1.5 KiB
Go
99 lines
1.5 KiB
Go
// Package dto — RBAC 管理的输入输出类型。
|
|
package dto
|
|
|
|
type PageQuery struct {
|
|
Page int
|
|
Size int
|
|
Keyword string
|
|
}
|
|
|
|
type AdminItem struct {
|
|
Id uint64
|
|
Username string
|
|
Nickname string
|
|
Status int
|
|
RoleIds []uint64
|
|
RoleNames []string
|
|
CreatedAt string
|
|
}
|
|
|
|
type AdminCreateInput struct {
|
|
Username string
|
|
Password string
|
|
Nickname string
|
|
RoleIds []uint64
|
|
}
|
|
|
|
type AdminUpdateInput struct {
|
|
Id uint64
|
|
Nickname string
|
|
Status int
|
|
RoleIds []uint64
|
|
}
|
|
|
|
type RoleItem struct {
|
|
Id uint64
|
|
Code string
|
|
Name string
|
|
Status int
|
|
MenuIds []uint64
|
|
CreatedAt string
|
|
}
|
|
|
|
type RoleCreateInput struct {
|
|
Code string
|
|
Name string
|
|
Status int
|
|
MenuIds []uint64
|
|
}
|
|
|
|
type RoleUpdateInput struct {
|
|
Id uint64
|
|
Name string
|
|
Status int
|
|
MenuIds []uint64
|
|
}
|
|
|
|
// MenuNode 是菜单管理使用的完整菜单树节点。
|
|
type MenuNode struct {
|
|
Id uint64
|
|
ParentId uint64
|
|
Name string
|
|
Icon string
|
|
Type int
|
|
Path string
|
|
Component string
|
|
Permission string
|
|
Sort int
|
|
Status int
|
|
Hidden bool
|
|
Children []*MenuNode
|
|
}
|
|
|
|
type MenuCreateInput struct {
|
|
ParentId uint64
|
|
Name string
|
|
Icon string
|
|
Type int
|
|
Path string
|
|
Component string
|
|
Permission string
|
|
Sort int
|
|
Status int
|
|
Hidden bool
|
|
}
|
|
|
|
type MenuUpdateInput struct {
|
|
Id uint64
|
|
ParentId uint64
|
|
Name string
|
|
Icon string
|
|
Type int
|
|
Path string
|
|
Component string
|
|
Permission string
|
|
Sort int
|
|
Status int
|
|
Hidden bool
|
|
}
|