Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListModel ¶
type ListModel struct {
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
PageCount int `json:"pageCount"`
Total int64 `json:"total"`
Items interface{} `json:"items"`
}
ListModel 列表数据模型
type LogModel ¶
type LogModel struct {
Type string `json:"type"`
Content string `json:"content"`
Created int64 `json:"created"`
}
LogModel 日志数据模型
type PortMapModel ¶
type PortMapModel struct {
ID int64 `xorm:"pk" json:"id"`
Title string `json:"title"`
TargetIP string `json:"targetIP"`
TargetPort int `json:"targetPort"`
SourceIP string `json:"sourceIP"`
SourcePort int `json:"sourcePort"`
UserID string `json:"userID"`
UserName string `json:"userName"`
Created int64 `json:"created"`
Updated int64 `json:"updated"`
Deleted int64 `xorm:"->" json:"-"`
IsStart bool `xorm:"-" json:"isStart"`
}
PortMapModel 端口映射模型
func (*PortMapModel) NewItems ¶
func (*PortMapModel) NewItems() interface{}
NewItems 实现 db.IModel 接口
type WhiteListModel ¶
type WhiteListModel struct {
ID int64 `xorm:"pk" json:"id"`
IP string `json:"ip"`
UserID string `json:"userID"`
UserName string `json:"userName"`
Expired int64 `json:"expired"`
Created int64 `json:"created"`
Updated int64 `json:"updated"`
Deleted int64 `xorm:"->" json:"-"`
}
WhiteListModel 白名单模型
func (*WhiteListModel) NewItems ¶
func (*WhiteListModel) NewItems() interface{}
NewItems 实现 db.IModel 接口
Click to show internal directories.
Click to hide internal directories.