model

package
v0.0.0-...-133e101 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SOURCE_MANHUAGUI int = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chapter

type Chapter struct {
	Id         int64 `xorm:"pk autoincr 'id'" json:"id"`
	ChapterRow `xorm:"extends -"`
	Total      int       `json:"total"`
	Count      int       `json:"count"`
	Created    time.Time `xorm:"created" json:"created"`
	Updated    time.Time `xorm:"updated" json:"updated"`
}

func (*Chapter) Status

func (ch *Chapter) Status() bool

type ChapterIdList

type ChapterIdList []int64

type ChapterList

type ChapterList []Chapter

type ChapterRow

type ChapterRow struct {
	MangaId int64  `xorm:"index 'manga_id'" json:"manga_id"`
	Title   string `json:"title"`
	Link    string `xorm:"unique" json:"link"`
	Index   int    `json:"index"`
}

ChapterRow is chapter base info

type ChapterRowList

type ChapterRowList []ChapterRow

type Manga

type Manga struct {
	Id      int64     `xorm:"pk autoincr" json:"id"`
	Name    string    `json:"name"`
	Author  string    `json:"author"`
	Link    string    `xorm:"unique" json:"link"`
	Alias   string    `json:"alias"`
	Intro   string    `xorm:"text" json:"intro"`
	Cover   string    `json:"cover"`
	Source  int       `xorm:"TINYINT 'source'" json:"source"`
	Created time.Time `xorm:"created" json:"created"`
	Updated time.Time `xorm:"updated" json:"updated"`
}

type MangaDetail

type MangaDetail struct {
	Manga
	ChapterList `json:"chapters"`
}

type MangaDetailList

type MangaDetailList []MangaDetail

type MangaInfo

type MangaInfo struct {
	*Manga
	ChapterRowList
}

type MangaList

type MangaList []Manga

type Mobi

type Mobi struct {
	Id          int64 `xorm:"pk autoincr 'id'"`
	MobiMeta    `xorm:"extends -"`
	ProcessInfo string    `xorm:"text 'process_info'"`
	Created     time.Time `xorm:"created"`
	Updated     time.Time `xorm:"updated"`
}

type MobiInfo

type MobiInfo struct {
	MobiMeta
	// swag wtf?
	ChapterIdList ChapterIdList `json:"chapter_id_list"`
}

type MobiMeta

type MobiMeta struct {
	Title  string
	Author string
	Cover  string
}

MobiMeta is base book file info

type MobiXChapter

type MobiXChapter struct {
	Id        int64     `xorm:"pk autoincr 'id'"`
	MobiId    int64     `xorm:"index 'mobi_id'"`
	ChapterId int64     `xorm:"index 'chapter_id'"`
	Created   time.Time `xorm:"created"`
	Updated   time.Time `xorm:"updated"`
}

type Picture

type Picture struct {
	Id        int64 `xorm:"pk autoincr 'id'"`
	MangaId   int64 `xorm:"index 'manga_id' notnull"`
	ChapterId int64 `xorm:"index 'chapter_id' notnull"`
	Src       string
	Status    bool
	Referer   string
	Index     int
	Created   time.Time `xorm:"created"`
	Updated   time.Time `xorm:"updated"`
}

func (*Picture) File

func (pic *Picture) File() string

func (*Picture) Path

func (pic *Picture) Path() string

type PictureList

type PictureList []Picture

type ProcessCount

type ProcessCount struct {
	Chromedp int `json:"chromedp"`
	Picture  int `json:"picture"`
}

type ProcessInfo

type ProcessInfo struct {
	ProcessCount
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL