Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dept ¶
type Dict ¶
type Job ¶
type Job struct { mdl.Mdl Name string `gorm:"uniqueIndex;not null" json:"name"` Desc string `gorm:"" json:"desc"` Cron string `gorm:"not null" json:"cron"` Arg string `gorm:"" json:"arg"` ArgDesc string `gorm:"" json:"argDesc"` Instance int `gorm:"not null" json:"instance"` State int `gorm:"not null" json:"state"` }
type Resource ¶
type Resource struct { mdl.Mdl ParentId int64 `gorm:"not null" json:"parentId"` Name string `gorm:"not null" json:"name"` Type int8 `gorm:"not null" json:"type"` Icon string `gorm:"" json:"icon"` Uri string `gorm:"not null" json:"uri"` Act string `gorm:"" json:"act"` Sequence int `gorm:"not null" json:"sequence"` Children []Resource `gorm:"foreignKey:ParentId" json:"children"` }
type User ¶
type User struct { mdl.Mdl DeptId int64 `gorm:"not null" json:"deptId"` UserName string `gorm:"uniqueIndex;size:60;not null" json:"userName"` FullName string `gorm:"" json:"fullName"` Mobile string `gorm:"not null" json:"mobile"` Password string `gorm:"size:60;not null" json:"password"` Frozen bool `gorm:"not null" json:"frozen"` Token string `gorm:"-" json:"token"` Dept *Dept `gorm:"" json:"dept"` }
type Visit ¶
type Visit struct { mdl.Mdl UserId int64 `gorm:"not null" json:"userId"` UserName string `gorm:"not null" json:"userName"` Ip string `gorm:"not null" json:"ip"` Method string `gorm:"not null" json:"method"` Url string `gorm:"not null" json:"url"` UserAgent string `gorm:"not null" json:"userAgent"` Req string `gorm:"size:1000;not null" json:"req"` Resp string `gorm:"size:1000;not null" json:"resp"` }
Click to show internal directories.
Click to hide internal directories.