Documentation ¶
Index ¶
- func Init() error
- func NovelAdd(data Novel) (result *qmgo.InsertOneResult, err error)
- func NovelOriginAdd(data Novel) (result *qmgo.InsertOneResult, err error)
- func NovelSourceAdd(data NovelSource) (result *qmgo.InsertOneResult, err error)
- func NovelSourceOriginAdd(data NovelSource) (result *qmgo.InsertOneResult, err error)
- type A
- type D
- type E
- type M
- type Novel
- type NovelBid
- type NovelSource
- type NovelSourceBid
- func NovelSearch(id, sort string, limit ...int64) (result []NovelSourceBid, err error)
- func NovelSourceId(id string) (result NovelSourceBid, err error)
- func NovelSourceOriginFind(limit ...int64) (result []NovelSourceBid, err error)
- func NovelSourceSearch(id, sort string, limit ...int64) (result []NovelSourceBid, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NovelOriginAdd ¶
func NovelOriginAdd(data Novel) (result *qmgo.InsertOneResult, err error)
func NovelSourceAdd ¶
func NovelSourceAdd(data NovelSource) (result *qmgo.InsertOneResult, err error)
func NovelSourceOriginAdd ¶
func NovelSourceOriginAdd(data NovelSource) (result *qmgo.InsertOneResult, err error)
Types ¶
type Novel ¶
type Novel struct { Name string `bson:"name"` Author string `bson:"author"` NewChapter string `bson:"new_chapter"` NewChapterUrl string `bson:"new_chapter_url"` Chapter string `bson:"chapter"` Source string `bson:"source"` Url string `bson:"url"` Updatetime time.Time `bson:"updatetime,omitempty" json:"updatetime"` Createtime time.Time `bson:"createtime,omitempty" json:"createtime"` }
type NovelBid ¶
type NovelBid struct { MgID string `bson:"_id"` Name string `bson:"name"` Author string `bson:"author"` NewChapter string `bson:"new_chapter"` NewChapterUrl string `bson:"new_chapter_url"` Chapter string `bson:"chapter"` Source string `bson:"source"` Url string `bson:"url"` Updatetime time.Time `bson:"updatetime,omitempty" json:"updatetime"` Createtime time.Time `bson:"createtime,omitempty" json:"createtime"` }
type NovelSource ¶
type NovelSourceBid ¶
type NovelSourceBid struct { MgID string `bson:"_id"` Name string `bson:"name"` RuleJson string `bson:"rule_json"` Status bool `bson:"status"` Updatetime time.Time `bson:"updatetime,omitempty" json:"updatetime"` Createtime time.Time `bson:"createtime,omitempty" json:"createtime"` }
func NovelSearch ¶
func NovelSearch(id, sort string, limit ...int64) (result []NovelSourceBid, err error)
func NovelSourceId ¶
func NovelSourceId(id string) (result NovelSourceBid, err error)
func NovelSourceOriginFind ¶
func NovelSourceOriginFind(limit ...int64) (result []NovelSourceBid, err error)
func NovelSourceSearch ¶
func NovelSourceSearch(id, sort string, limit ...int64) (result []NovelSourceBid, err error)
Click to show internal directories.
Click to hide internal directories.