mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-12-03 10:33:18 +00:00
add conn log
This commit is contained in:
26
model/audit.go
Normal file
26
model/audit.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package model
|
||||
|
||||
const (
|
||||
AuditActionNew = "new"
|
||||
AuditActionClose = "close"
|
||||
)
|
||||
|
||||
type AuditConn struct {
|
||||
IdModel
|
||||
Action string `json:"action" gorm:"default:'';not null;"`
|
||||
ConnId int64 `json:"conn_id" gorm:"default:0;not null;index"`
|
||||
PeerId string `json:"peer_id" gorm:"default:'';not null;index"`
|
||||
FromPeer string `json:"from_peer" gorm:"default:'';not null;"`
|
||||
FromName string `json:"from_name" gorm:"default:'';not null;"`
|
||||
Ip string `json:"ip" gorm:"default:'';not null;"`
|
||||
SessionId string `json:"session_id" gorm:"default:'';not null;"`
|
||||
Type int `json:"type" gorm:"default:0;not null;"`
|
||||
Uuid string `json:"uuid" gorm:"default:'';not null;"`
|
||||
CloseTime int64 `json:"close_time" gorm:"default:0;not null;"`
|
||||
TimeModel
|
||||
}
|
||||
|
||||
type AuditConnList struct {
|
||||
AuditConns []*AuditConn `json:"list"`
|
||||
Pagination
|
||||
}
|
||||
Reference in New Issue
Block a user