Documentation ¶
Index ¶
- Constants
- func CronDelById(id int) (int64, error)
- func CronLogAdd(cron *AppCronLog) (int64, error)
- func CronLogDelById(id int) (int64, error)
- func DebugAdd(utype int, msg string)
- func FuncDelById(id int) (int64, error)
- func Init()
- func ItemDelById(id int) (int64, error)
- func LogAdd(uid int, utype int, msg string)
- func RoleDelById(id int) (int64, error)
- func ServerDelById(id int) (int64, error)
- func TableName(name string) string
- func UserDelById(id int) (int64, error)
- type AppCron
- type AppCronLog
- type AppDebug
- type AppItem
- type AppServer
- type SysFunc
- type SysFuncNav
- type SysLog
- type SysRole
- type SysUser
Constants ¶
View Source
const ( CRON_SUCCESS = 0 // 任务执行成功 CRON_ERROR = -1 // 任务执行出错 CRON_TIMEOUT = -2 // 任务执行超时 )
View Source
const ( SYS = 1 MAIL = 2 ERR = 3 )
Variables ¶
This section is empty.
Functions ¶
func CronDelById ¶
func CronLogAdd ¶
func CronLogAdd(cron *AppCronLog) (int64, error)
func CronLogDelById ¶
func FuncDelById ¶
func ItemDelById ¶
func RoleDelById ¶
func ServerDelById ¶
func UserDelById ¶
Types ¶
type AppCron ¶
type AppCron struct { Id int Name string Desc string ItemId int CronSpec string Cmd string Concurrent int ExecNum int PrevTime int64 Notify int Timeout int Status int UpdateTime int64 CreateTime int64 }
func CronGetById ¶
func CronGetByName ¶
func CronGetList ¶
type AppCronLog ¶
type AppCronLog struct { Id int CronId int Output string Error string ProcessTime int Status int CreateTime int64 }
func CronLogGetById ¶
func CronLogGetById(id int) (*AppCronLog, error)
func CronLogGetByName ¶
func CronLogGetByName(name string) (*AppCronLog, error)
func CronLogGetList ¶
func CronLogGetList(page, pageSize int, filters ...interface{}) ([]*AppCronLog, int64)
func (*AppCronLog) TableName ¶
func (u *AppCronLog) TableName() string
func (*AppCronLog) Update ¶
func (u *AppCronLog) Update(fields ...string) error
type AppDebug ¶
func DebugGetList ¶
type AppItem ¶
type AppItem struct { Id int Name string Desc string Mail string Type int Sign string ServerId int Status int UpdateTime int64 CreateTime int64 }
func ItemGetById ¶
func ItemGetByName ¶
func ItemGetList ¶
type AppServer ¶
type AppServer struct { Id int Ip string Port int Desc string Type int User string Pwd string Status int UpdateTime int64 CreateTime int64 }
func ServerGetById ¶
func ServerGetByName ¶
func ServerGetList ¶
type SysFunc ¶
type SysFunc struct { Id int Name string Pid int Controller string Action string Type int IsMenu int Icon string Desc string Sort int Status int UpdateTime int64 CreateTime int64 }
func FuncGetById ¶
func FuncGetListByPid ¶
type SysFuncNav ¶
type SysFuncNav struct {}
func FuncGetList ¶
func FuncGetList() []SysFuncNav
func FuncGetNav ¶
func FuncInGetNav ¶
type SysLog ¶
func LogGetList ¶
type SysRole ¶
type SysRole struct { Id int Name string Desc string List string Status int UpdateTime int64 CreateTime int64 }
func RoleGetAll ¶
func RoleGetById ¶
func RoleGetList ¶
Click to show internal directories.
Click to hide internal directories.