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)
Click to show internal directories.
Click to hide internal directories.