database

package
v0.0.0-...-6875e1c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SqlDB *sqlx.DB

Functions

func Get

func Get(chartID int) (chart generalModels.BestdoriChartItem, err error)

func Query

func Query(q string, page int64, limit int64, filter []string) (charts []generalModels.BestdoriChartItem, totalChart int64, err error)

Types

type BestdoriOverAllInfo

type BestdoriOverAllInfo struct {
	ChartCount  int     `db:"chartCount" json:"chart-count"`
	Latest      int     `db:"latest" json:"latest"`
	TotalNote   int     `db:"totalNote" json:"total-note"`
	TotalTime   float64 `db:"totalTime" json:"total-time"`
	AuthorCount int     `db:"authorCount" json:"author-count"`
}

func GetBestdoriOverallInfo

func GetBestdoriOverallInfo() (info BestdoriOverAllInfo, err error)

Jump to

Keyboard shortcuts

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