model

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 0 Imported by: 8

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 日志数据模型

func (*LogModel) NewItems

func (*LogModel) NewItems() interface{}

NewItems 实现 db.IModel 接口

func (*LogModel) TableName

func (*LogModel) TableName() string

TableName 表名

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 接口

func (*PortMapModel) TableName

func (*PortMapModel) TableName() string

TableName 表名

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 接口

func (*WhiteListModel) TableName

func (*WhiteListModel) TableName() string

TableName 表名

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL