| 123456789101112131415161718192021222324252627 |
- 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
- }
|