fix(session):补充缺失的文件
This commit is contained in:
1 parent
3d184582fc
commit
0fe680e055
3 files changed
+14
-10
No files matched your search
@@ -31,6 +31,7 @@ type SysSessionsColumns struct {
|
||||
ExpiresAt string // Token 过期时间
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
Jti string // JWT ID (jti),会话唯一标识符(UUID),用于 Redis 吊销缓存
|
||||
}
|
||||
|
||||
// sysSessionsColumns holds the columns for the table sys_sessions.
|
||||
@@ -45,6 +46,7 @@ var sysSessionsColumns = SysSessionsColumns{
|
||||
ExpiresAt: "expires_at",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
Jti: "jti",
|
||||
}
|
||||
|
||||
// NewSysSessionsDao creates and returns a new DAO object for table data access.
|
||||
|
||||
@@ -22,4 +22,5 @@ type SysSessions struct {
|
||||
ExpiresAt *gtime.Time // Token 过期时间
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
Jti any // JWT ID (jti),会话唯一标识符(UUID),用于 Redis 吊销缓存
|
||||
}
|
||||
@@ -10,14 +10,15 @@ import (
|
||||
|
||||
// SysSessions is the golang structure for table sys_sessions.
|
||||
type SysSessions struct {
|
||||
Id int64 `json:"id" orm:"id" description:"主键ID"` // 主键ID
|
||||
UserType string `json:"user_type" orm:"user_type" description:"用户类型:admin(管理后台)/ tenant(租户控制台)"` // 用户类型:admin(管理后台)/ tenant(租户控制台)
|
||||
UserId int64 `json:"user_id" orm:"user_id" description:"用户ID"` // 用户ID
|
||||
TenantId int64 `json:"tenant_id" orm:"tenant_id" description:"租户ID(admin类型时为NULL)"` // 租户ID(admin类型时为NULL)
|
||||
RefreshTokenHash string `json:"refresh_token_hash" orm:"refresh_token_hash" description:"Refresh Token 哈希值"` // Refresh Token 哈希值
|
||||
DeviceInfo string `json:"device_info" orm:"device_info" description:"设备信息(JSONB:浏览器、操作系统等)"` // 设备信息(JSONB:浏览器、操作系统等)
|
||||
IpAddress string `json:"ip_address" orm:"ip_address" description:"登录IP地址"` // 登录IP地址
|
||||
ExpiresAt *gtime.Time `json:"expires_at" orm:"expires_at" description:"Token 过期时间"` // Token 过期时间
|
||||
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
Id int64 `json:"id" orm:"id" description:"主键ID"` // 主键ID
|
||||
UserType string `json:"user_type" orm:"user_type" description:"用户类型:admin(管理后台)/ tenant(租户控制台)"` // 用户类型:admin(管理后台)/ tenant(租户控制台)
|
||||
UserId int64 `json:"user_id" orm:"user_id" description:"用户ID"` // 用户ID
|
||||
TenantId int64 `json:"tenant_id" orm:"tenant_id" description:"租户ID(admin类型时为NULL)"` // 租户ID(admin类型时为NULL)
|
||||
RefreshTokenHash string `json:"refresh_token_hash" orm:"refresh_token_hash" description:"Refresh Token 哈希值"` // Refresh Token 哈希值
|
||||
DeviceInfo string `json:"device_info" orm:"device_info" description:"设备信息(JSONB:浏览器、操作系统等)"` // 设备信息(JSONB:浏览器、操作系统等)
|
||||
IpAddress string `json:"ip_address" orm:"ip_address" description:"登录IP地址"` // 登录IP地址
|
||||
ExpiresAt *gtime.Time `json:"expires_at" orm:"expires_at" description:"Token 过期时间"` // Token 过期时间
|
||||
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
Jti string `json:"jti" orm:"jti" description:"JWT ID (jti),会话唯一标识符(UUID),用于 Redis 吊销缓存"` // JWT ID (jti),会话唯一标识符(UUID),用于 Redis 吊销缓存
|
||||
}
|
||||
Reference in new issue
Block a user