blog

package
v0.0.0-...-4a8c6e9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bgmcache = bgmCache{}

Functions

func Archive

func Archive(c echo.Context) error

func BackErr

func BackErr(err error, c echo.Context)

func Bangumi

func Bangumi(c echo.Context) error

Bangumi todo https://freefrontend.com/css-cards/

func BlogIndex

func BlogIndex(c echo.Context) error

FrontIndex TODO 加载更多、ajax

func BlogIndexAjax

func BlogIndexAjax(c echo.Context) error

func CommentPost

func CommentPost(c echo.Context) error

func CurlBGM

func CurlBGM(url string)

func FrontErr

func FrontErr(err error, c echo.Context)

func Post

func Post(c echo.Context) error

func QueryBGM

func QueryBGM(Db *sqlx.DB) string

QueryBGM TODO 把这个移到query中

func QueryTime

func QueryTime(Db *sqlx.DB) h3

Types

type AutoGenerated

type AutoGenerated []struct {
	Type     int    `json:"type"`
	Name     string `json:"name"`
	NameCn   string `json:"name_cn"`
	Collects AutoGenerated2
}

type AutoGenerated2

type AutoGenerated2 []struct {
	Status struct {
		ID   int    `json:"id"`
		Type string `json:"type"`
		Name string `json:"name"`
	} `json:"status"`
	Count int `json:"count"`
	List  []struct {
		SubjectID int `json:"subject_id"`
		Subject   struct {
			ID         int    `json:"id"`
			URL        string `json:"url"`
			Type       int    `json:"type"`
			Name       string `json:"name"`
			NameCn     string `json:"name_cn"`
			Summary    string `json:"summary"`
			AirDate    string `json:"air_date"`
			AirWeekday int    `json:"air_weekday"`
			Images     struct {
				Large  string `json:"large"`
				Common string `json:"common"`
				Medium string `json:"medium"`
				Small  string `json:"small"`
				Grid   string `json:"grid"`
			} `json:"images"`
		} `json:"subject"`
	} `json:"list"`
}

type CommPost

type CommPost struct {
	Author string `xml:"author"   form:"author"`
	Mail   string `xml:"mail"     form:"mail"`
	Text   string `xml:"text"     form:"text"`
	Url    string `xml:"url"      form:"url"`
}

type TimelineData

type TimelineData struct {
	Cid         uint64
	CreatedUnix int64
	Day         int
	Mon         int
	Year        int
	Title       string
}

type TimelineTmpdata

type TimelineTmpdata struct {
	Cid   uint64
	Day   int
	Title string
}

Jump to

Keyboard shortcuts

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