models

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodFull = iota
	MethodInfo
	MethodChart
)
View Source
const (
	ServerBandori = iota
	ServerBestdori
	ServerLLSif
	TotalServerCnt
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetsURL

type AssetsURL struct {
	Cover string `json:"cover"`
	Audio string `json:"audio"`
}

type Info

type Info struct {
	PostID   int    `json:"id"`                 // Bestdori的谱面ID
	Title    string `json:"title"`              // 谱面的标题
	Artists  string `json:"artists"`            // 谱面的艺术家
	Username string `json:"username"`           // 谱面作者 官谱返回craftegg
	Nickname string `json:"nickname,omitempty"` // 谱面作者昵称	可为空
	Diff     int    `json:"diff"`               // 谱面难度
	Rating   int    `json:"rating"`             // 谱面等级
	AudioUrl string `json:"audioURL"`           // 谱面资源
	CoverUrl string `json:"coverURL"`           // 封面资源
	Time     int64  `json:"time"`               // ms时间戳
	Content  string `json:"content"`            // 内容
}

type Post

type Post struct {
	*Info
	Chart *bestdori.V2Chart `json:"chart,omitempty"` // 谱面
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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