2ed5dfa6a1
iotlcm-app:小程序端 + 用户端服务。 - app/:uni-app 小程序前端(基于 unibest,MIT) - 微信 AppID → YOUR_WX_APPID,uni-app AppID → __UNI__YOURAPPID - 内网后端地址 → admin.iotlcm.example.com - 应用标题与 unibest 模板 README 重写(保留上游致谢与 MIT 声明) - server/:GoFrame 用户端服务(基于 XiuAdmin,Apache-2.0) - module xiuadmin → git.5iot.com/iotlcm-public/iotlcm-app(360 文件) - 支付回调地址 → app.iotlcm.example.com,商户名与应用名泛化 - 真实手机号 → 合法 11 位编造号(保留号段前 3 位 + 后 4 位) - 依赖号码尾部的断言同步更新 - 补 server/LICENSE(Apache-2.0) - 移除内部资产:CI 触发器 - 补根 README,LF 行尾 + .gitattributes 已知:TestSysDept_RefreshDeptAncestors 在源仓同一提交上同样失败,属既有缺陷。
112 lines
6.6 KiB
Go
112 lines
6.6 KiB
Go
// package model
|
|
// @Link https://github.com/xiujiecn/xiu-admin
|
|
// @Copyright Copyright (c) 2025 LiXiujie
|
|
// @Author Lxj <li@xiujie.cn>
|
|
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
|
package model
|
|
|
|
import (
|
|
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/entity"
|
|
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|
)
|
|
|
|
type SysMenuTree struct {
|
|
entity.SysMenu
|
|
Children []*SysMenuTree `json:"children"`
|
|
}
|
|
|
|
type SysMenuListModel struct {
|
|
MenuId int64 `json:"menuId" orm:"menu_id" description:"菜单ID"`
|
|
MenuName string `json:"menuName" orm:"menu_name" description:"菜单名称"`
|
|
ParentId int64 `json:"parentId" orm:"parent_id" description:"父菜单ID"`
|
|
OrderNum int `json:"orderNum" orm:"order_num" description:"显示顺序"`
|
|
Path string `json:"path" orm:"path" description:"路由地址"`
|
|
Component string `json:"component" orm:"component" description:"组件路径"`
|
|
QueryParam string `json:"queryParam" orm:"query_param" description:"路由参数"`
|
|
IsFrame int `json:"isFrame" orm:"is_frame" description:"是否为外链(0是 1否)"`
|
|
IsCache int `json:"isCache" orm:"is_cache" description:"是否缓存(0缓存 1不缓存)"`
|
|
MenuType string `json:"menuType" orm:"menu_type" description:"菜单类型(M目录 C菜单 F按钮)"`
|
|
Visible string `json:"visible" orm:"visible" description:"显示状态(0显示 1隐藏)"`
|
|
Status string `json:"status" orm:"status" description:"菜单状态(0正常 1停用)"`
|
|
Perms string `json:"perms" orm:"perms" description:"权限标识"`
|
|
Icon string `json:"icon" orm:"icon" description:"菜单图标"`
|
|
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
|
|
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
|
|
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
|
Remark string `json:"remark" orm:"remark" description:"备注"`
|
|
}
|
|
|
|
type SysMenuListParam struct {
|
|
MenuName string `json:"menuName"`
|
|
Status string `json:"status"`
|
|
MenuIds []int64 `json:"menuIds"`
|
|
}
|
|
|
|
type SysMenuViewModel struct {
|
|
entity.SysMenu
|
|
}
|
|
|
|
type SysMenuAddModel struct {
|
|
MenuId int64 `json:"menuId" orm:"menu_id" description:"菜单ID"`
|
|
MenuName string `json:"menuName" orm:"menu_name" description:"菜单名称"`
|
|
ParentId int64 `json:"parentId" orm:"parent_id" description:"父菜单ID"`
|
|
OrderNum int `json:"orderNum" orm:"order_num" description:"显示顺序"`
|
|
Path string `json:"path" orm:"path" description:"路由地址"`
|
|
Component string `json:"component" orm:"component" description:"组件路径"`
|
|
QueryParam string `json:"queryParam" orm:"query_param" description:"路由参数"`
|
|
IsFrame int `json:"isFrame" orm:"is_frame" description:"是否为外链(0是 1否)"`
|
|
IsCache int `json:"isCache" orm:"is_cache" description:"是否缓存(0缓存 1不缓存)"`
|
|
MenuType string `json:"menuType" orm:"menu_type" description:"菜单类型(M目录 C菜单 F按钮)"`
|
|
Visible string `json:"visible" orm:"visible" description:"显示状态(0显示 1隐藏)"`
|
|
Status string `json:"status" orm:"status" description:"菜单状态(0正常 1停用)"`
|
|
Perms string `json:"perms" orm:"perms" description:"权限标识"`
|
|
Icon string `json:"icon" orm:"icon" description:"菜单图标"`
|
|
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
|
|
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
|
|
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
|
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
|
|
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
|
|
Remark string `json:"remark" orm:"remark" description:"备注"`
|
|
}
|
|
|
|
type SysMenuUpdateModel struct {
|
|
MenuId int64 `json:"menuId"`
|
|
MenuName *string `json:"menuName" orm:"menu_name" description:"菜单名称"`
|
|
ParentId *int64 `json:"parentId" orm:"parent_id" description:"父菜单ID"`
|
|
OrderNum *int `json:"orderNum" orm:"order_num" description:"显示顺序"`
|
|
Path *string `json:"path" orm:"path" description:"路由地址"`
|
|
Component *string `json:"component" orm:"component" description:"组件路径"`
|
|
QueryParam *string `json:"queryParam" orm:"query_param" description:"路由参数"`
|
|
IsFrame *int `json:"isFrame" orm:"is_frame" description:"是否为外链(0是 1否)"`
|
|
IsCache *int `json:"isCache" orm:"is_cache" description:"是否缓存(0缓存 1不缓存)"`
|
|
MenuType *string `json:"menuType" orm:"menu_type" description:"菜单类型(M目录 C菜单 F按钮)"`
|
|
Visible *string `json:"visible" orm:"visible" description:"显示状态(0显示 1隐藏)"`
|
|
Status *string `json:"status" orm:"status" description:"菜单状态(0正常 1停用)"`
|
|
Perms *string `json:"perms" orm:"perms" description:"权限标识"`
|
|
Icon *string `json:"icon" orm:"icon" description:"菜单图标"`
|
|
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
|
|
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
|
|
Remark *string `json:"remark" orm:"remark" description:"备注"`
|
|
}
|
|
|
|
type SysMenuDeleteModel struct {
|
|
MenuId int64 `json:"menuId"`
|
|
}
|
|
|
|
type SysMenuMini struct {
|
|
MenuId int64 `json:"menuId"`
|
|
MenuName *string `json:"menuName" orm:"menu_name" description:"菜单名称"`
|
|
ParentId *int64 `json:"parentId" orm:"parent_id" description:"父菜单ID"`
|
|
}
|
|
|
|
type SysMenuTreeModel struct {
|
|
Title string `json:"title"`
|
|
Key string `json:"key"`
|
|
ParentId int64 `json:"parentId"`
|
|
MenuId int64 `json:"menuId"`
|
|
MenuName string `json:"menuName"`
|
|
MenuType string `json:"menuType" orm:"menu_type" description:"菜单类型(M目录 C菜单 F按钮)"`
|
|
Children []*SysMenuTreeModel `json:"children"`
|
|
}
|