feat: 添加数据库资产、命令拦截器、授权资产等功能,修复GitHub Actions工作流
This commit is contained in:
+23
-23
@@ -47,29 +47,29 @@ func (r *Session) TableName() string {
|
||||
}
|
||||
|
||||
type SessionForPage struct {
|
||||
ID string `json:"id" gorm:"column:id"`
|
||||
Protocol string `json:"protocol" gorm:"column:protocol"`
|
||||
IP string `json:"ip" gorm:"column:ip"`
|
||||
Port int `json:"port" gorm:"column:port"`
|
||||
Username string `json:"username" gorm:"column:username"`
|
||||
ConnectionId string `json:"connectionId" gorm:"column:connection_id"`
|
||||
AssetId string `json:"assetId" gorm:"column:asset_id"`
|
||||
Creator string `json:"userId" gorm:"column:creator"`
|
||||
ClientIP string `json:"clientIp" gorm:"column:client_ip"`
|
||||
Width int `json:"width" gorm:"column:width"`
|
||||
Height int `json:"height" gorm:"column:height"`
|
||||
Status string `json:"status" gorm:"column:status"`
|
||||
Recording string `json:"recording" gorm:"column:recording"`
|
||||
ConnectedTime common.JsonTime `json:"connectedAt" gorm:"column:connected_time"`
|
||||
DisconnectedTime common.JsonTime `json:"disconnectedAt" gorm:"column:disconnected_time"`
|
||||
AssetName string `json:"assetName" gorm:"column:asset_name"`
|
||||
CreatorName string `json:"userAccount" gorm:"column:creator_name"`
|
||||
Code int `json:"code" gorm:"column:code"`
|
||||
Message string `json:"message" gorm:"column:message"`
|
||||
Mode string `json:"mode" gorm:"column:mode"`
|
||||
Reviewed bool `json:"reviewed" gorm:"column:reviewed"`
|
||||
CommandCount int64 `json:"commandCount" gorm:"column:command_count"`
|
||||
ConnectionDuration string `json:"connectionDuration" gorm:"-"`
|
||||
ID string `json:"id" gorm:"column:id"`
|
||||
Protocol string `json:"protocol" gorm:"column:protocol"`
|
||||
IP string `json:"ip" gorm:"column:ip"`
|
||||
Port int `json:"port" gorm:"column:port"`
|
||||
Username string `json:"username" gorm:"column:username"`
|
||||
ConnectionId string `json:"connectionId" gorm:"column:connection_id"`
|
||||
AssetId string `json:"assetId" gorm:"column:asset_id"`
|
||||
Creator string `json:"userId" gorm:"column:creator"`
|
||||
ClientIP string `json:"clientIp" gorm:"column:client_ip"`
|
||||
Width int `json:"width" gorm:"column:width"`
|
||||
Height int `json:"height" gorm:"column:height"`
|
||||
Status string `json:"status" gorm:"column:status"`
|
||||
Recording string `json:"recording" gorm:"column:recording"`
|
||||
ConnectedTime common.JsonTime `json:"connectedAt" gorm:"column:connected_time"`
|
||||
DisconnectedTime common.JsonTime `json:"disconnectedAt" gorm:"column:disconnected_time"`
|
||||
AssetName string `json:"assetName" gorm:"column:asset_name"`
|
||||
CreatorName string `json:"userAccount" gorm:"column:creator_name"`
|
||||
Code int `json:"code" gorm:"column:code"`
|
||||
Message string `json:"message" gorm:"column:message"`
|
||||
Mode string `json:"mode" gorm:"column:mode"`
|
||||
Reviewed bool `json:"reviewed" gorm:"column:reviewed"`
|
||||
CommandCount int64 `json:"commandCount" gorm:"column:command_count"`
|
||||
ConnectionDuration string `json:"connectionDuration" gorm:"-"`
|
||||
}
|
||||
|
||||
type SessionForAccess struct {
|
||||
|
||||
Reference in New Issue
Block a user