- 修复「修改接入网关失败」的问题
- 完成「[功能请求]审计的历史会话建议添加“已阅”的功能」close #194 - 增加一键删除登录日志和历史会话的功能
This commit is contained in:
@ -34,6 +34,7 @@ type Session struct {
|
||||
CreateDir string `gorm:"type:varchar(1)" json:"createDir"`
|
||||
StorageId string `gorm:"type:varchar(36)" json:"storageId"`
|
||||
AccessGatewayId string `gorm:"type:varchar(36)" json:"accessGatewayId"`
|
||||
Reviewed bool `gorm:"type:tinyint(1)" json:"reviewed"`
|
||||
}
|
||||
|
||||
func (r *Session) TableName() string {
|
||||
@ -61,6 +62,7 @@ type SessionForPage struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Mode string `json:"mode"`
|
||||
Reviewed bool `json:"reviewed"`
|
||||
}
|
||||
|
||||
type SessionForAccess struct {
|
||||
|
@ -11,7 +11,7 @@ type User struct {
|
||||
Nickname string `gorm:"type:varchar(500)" json:"nickname"`
|
||||
TOTPSecret string `json:"-"`
|
||||
Online bool `json:"online"`
|
||||
Enabled bool `json:"enabled"`
|
||||
Status string `gorm:"type:varchar(10)" json:"status"`
|
||||
Created utils.JsonTime `json:"created"`
|
||||
Type string `gorm:"type:varchar(20)" json:"type"`
|
||||
Mail string `gorm:"type:varchar(500)" json:"mail"`
|
||||
@ -24,7 +24,7 @@ type UserForPage struct {
|
||||
TOTPSecret string `json:"totpSecret"`
|
||||
Mail string `json:"mail"`
|
||||
Online bool `json:"online"`
|
||||
Enabled bool `json:"enabled"`
|
||||
Status string `json:"status"`
|
||||
Created utils.JsonTime `json:"created"`
|
||||
Type string `json:"type"`
|
||||
SharerAssetCount int64 `json:"sharerAssetCount"`
|
||||
|
Reference in New Issue
Block a user