models

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB()

CloseDB closes database connection (unnecessary)

func GetComicTotal

func GetComicTotal(maps interface{}) (int, error)

func Setup

func Setup()

Setup initializes the database instance

Types

type ComicImages

type ComicImages struct {
	ID       string `json:"id"`
	PageID   string `json:"page_id"`
	Sequence string `json:"sequence"`
	Src      string `json:"src"`
	Progress string `json:"progress"`
	// IsDeleted string `json:"is_deleted"`
	UpdatedAt string `json:"updated_at"`
	CreatedAt string `json:"created_at"`
}

func GetImageList

func GetImageList(PageID int, maps interface{}) ([]*ComicImages, error)

type ComicPages

type ComicPages struct {
	ID       int    `json:"id"`
	Channel  int    `json:"channel"`
	SourceID int    `json:"source_id"`
	Sequence int    `json:"sequence"`
	Name     string `json:"name"`
	Link     string `json:"link"`
	Progress int    `json:"progress"`
	// IsDeleted int `json:"is_deleted"`
	UpdatedAt string `json:"updated_at"`
	CreatedAt string `json:"created_at"`
}

func GetNextPageInfo

func GetNextPageInfo(Channel int, SourceID int, ID int, maps interface{}) (*ComicPages, error)

func GetPageInfo

func GetPageInfo(ID int, maps interface{}) (*ComicPages, error)

func GetPageList

func GetPageList(Channel int, SourceID int, maps interface{}) ([]*ComicPages, error)

type Comics

type Comics struct {
	ID       string `json:"id"`
	Channel  string `json:"channel"`
	SourceID string `json:"source_id"`
	Name     string `json:"name"`
	Pic      string `json:"pic"`
	Intro    string `json:"intro"`
	// IsDeleted string `json:"is_deleted"`
	MaxSequence string `json:"max_sequence"`
	Weight      string `json:"weight"`
	Tag         string `json:"tag"`
	UpdatedAt   string `json:"updated_at"`
	CreatedAt   string `json:"created_at"`
}

func GetComicInfo

func GetComicInfo(Channel int, SourceID int, maps interface{}) (*Comics, error)

func GetComicList

func GetComicList(pageNum int, pageSize int, maps interface{}) ([]*Comics, error)

type Model

type Model struct {
	ID        int    `gorm:"primary_key" json:"id"`
	IsDeleted string `json:"is_deleted"`
	UpdatedAt string `json:"updated_at"`
	CreatedAt string `json:"created_at"`
}

Jump to

Keyboard shortcuts

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