Documentation ¶
Index ¶
- func AddUser(auth Pms_Auth) error
- func CheckAuth(username, password string) bool
- func CloseDB()
- func CreateTable()
- func DelUser(auth Pms_Auth) error
- func GenPwdIPs(ips string) (changeList, NotExist []string)
- func GetIpsPwd(ips string) (results []map[string]string)
- func InitData()
- func UpdateIPPasswd()
- type IPAssets
- type IPPasswd
- type Pms_Auth
- type Recrod
- type SearchPwd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPAssets ¶
type IPAssets struct { gorm.Model LanIP string `gorm:"primary_key"` WanIP string BisId string Module string }
IP资产表
type Pms_Auth ¶
type Pms_Auth struct { ID int `gorm:"primary_key" json:"id"` Username string `gorm:"primary_key" json:"username"` Password string `json:"password"` }
api账户表
Click to show internal directories.
Click to hide internal directories.