Documentation ¶
Index ¶
- Constants
- func DebugAdd(utype int, msg string)
- func FuncDelById(id int) (int64, error)
- func Init()
- func ItemCount() int64
- func ItemDelById(id int) (int64, error)
- func ItemGetNameById(id int) string
- func LogAdd(uid int, utype int, msg string) (int64, error)
- func MysqlPing() bool
- func NovelCount(from_id string) int64
- func NovelDelById(id int) (int64, error)
- func NovelTodayCount(from_id string) int64
- func OptionGet(name string, def string) string
- func OptionSet(name string, value string) bool
- func RoleDelById(id int) (int64, error)
- func TableName(name string) string
- func UserDelById(id int) (int64, error)
- type AppDebug
- type AppItem
- type AppNovel
- func CronNovelGetByNameAndFromId(name string, fromid string) (*AppNovel, error)
- func CronNovelGetByStatus(status string, interval int64, num int) []*AppNovel
- func NovelGetById(id int) (*AppNovel, error)
- func NovelGetByIdStr(id string) (*AppNovel, error)
- func NovelGetByName(name string) (*AppNovel, error)
- func NovelGetByUniqueId(unique_id string) (*AppNovel, error)
- func NovelGetList(page, pageSize int, filters ...interface{}) ([]*AppNovel, int64)
- func SosoNovelByKw(kw string, page, pageSize int) ([]AppNovel, int64)
- type SysFunc
- type SysFuncNav
- type SysLog
- type SysOption
- type SysRole
- type SysUser
Constants ¶
View Source
const ( WEB_NAME = "web_name" WEB_KEYWORD = "web_keyword" WEB_DESC = "web_desc" WEB_STAT = "web_stat" WEB_NOTICE = "web_notice" WEB_NOTICE_MAIL = "web_notice_mail" MAIL_HOST = "mail_host" MAIL_PORT = "mail_port" MAIL_USER = "mail_user" MAIL_PWD = "mail_pwd" MAIL_QUEUE_SIZE = "mail_queue_size" )
View Source
const ( SYS = 1 MAIL = 2 ERR = 3 )
Variables ¶
This section is empty.
Functions ¶
func FuncDelById ¶
func ItemDelById ¶
func ItemGetNameById ¶
func NovelCount ¶
func NovelDelById ¶
func NovelTodayCount ¶
func RoleDelById ¶
func UserDelById ¶
Types ¶
type AppDebug ¶
func DebugGetList ¶
type AppItem ¶
type AppItem struct { Id int Name string IsOfficial string PageCharset string PageIndex string PageIndexRule string PathRule string PathTpl string PathPageExp string NameRule string DescRule string AuthorRule string CategoryRule string StatusRule string StatusEndMark string ChapterPathRule string ChapterPathExp string ChapterListRule string ContentExp string ContentRule string SosoExp string SosoPageArgs string SosoRule string SpiderExp string SpiderRange string SpiderRule string SpiderProgress int ErrMsg string Status int CronUpTime int64 UpdateTime int64 CreateTime int64 }
func ItemGetById ¶
func ItemGetByName ¶
func ItemGetList ¶
type AppNovel ¶
type AppNovel struct { Id int FromId int Url string UniqueId string Name string Category string Desc string Author string List string ChapterNum int LastChapter string LastChapterUrl string BookStatus int Status int UpdateTime int64 CreateTime int64 }
func CronNovelGetByStatus ¶
func NovelGetById ¶
func NovelGetByIdStr ¶
func NovelGetByName ¶
func NovelGetByUniqueId ¶
func NovelGetList ¶
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.