chore: 并入 iotlcm-app 历史到 app/(原提交 f40bda9)

This commit is contained in:
MiFaZhan
2026-11-02 13:28:00 +08:00
1107 changed files with 147143 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
// package model
// @Link https://github.com/xiujiecn/xiu-admin
// @Copyright Copyright (c) 2025 LiXiujie
// @Author Lxj <li@example.com>
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
package model
import "github.com/gogf/gf/v2/frame/g"
// 上下文结构
type Context struct {
User *Identity // 上下文用户信息
IsWebSocket bool // 是否是WebSocket
Data g.Map // 自定KV变量,业务模块根据需要设置,不固定
}
type Role struct {
RoleId int64 // 角色ID
DataScope string // 数据范围
}
// 通用身份模型
type Identity struct {
BaseClaims
AccessCodeList []string // 访问码列表
}