controller

package
v0.0.0-...-1808d18 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BDFan2Sonolus

func BDFan2Sonolus(chart []Note) (SonolusScript []byte, err error)

func BestdoriSearch

func BestdoriSearch(ctx *gin.Context)

func BlueWhiteFunc

func BlueWhiteFunc(song model.Detail) (diff float32)

func BlueWhiteFuncOld

func BlueWhiteFuncOld(detail model.Detail) (diff float32)

func CalcAuthor

func CalcAuthor(ctx *gin.Context)

func CalcChartDetails

func CalcChartDetails(chart []Note) (float32, int, float32)

func CalcData

func CalcData(ctx *gin.Context)

func CalcItemDiff

func CalcItemDiff(key string, value float32, diff int) (itemDiff float32)

func ChartNotes

func ChartNotes(ctx *gin.Context)

func DiffAnalysis

func DiffAnalysis(ctx *gin.Context)

func DiffAnalysisPost

func DiffAnalysisPost(ctx *gin.Context)

func GetFanMadeChart

func GetFanMadeChart(chartID int) (chart model.Chart, err error)

Get chart data from fan website: bestdori.reikohaku.fun

func GetOfficialChart

func GetOfficialChart(chartID, diff int) (chart model.Chart, err error)

Get chart data from official website: player.banground.fun

func GetSonolusList

func GetSonolusList(ctx *gin.Context)

func SliceNoteList

func SliceNoteList(noteList []Note) (res []*[]Note, sliceTime float32)

对note_list进行划分

func SongList

func SongList(ctx *gin.Context)

func SonolusScriptPost

func SonolusScriptPost(ctx *gin.Context)

func UpdateChart

func UpdateChart(chartID, diff int) (chart model.Chart, detail model.Detail, err error)

func UploadSonolusTest

func UploadSonolusTest(ctx *gin.Context)

Types

type Finger

type Finger struct {
	// contains filtered or unexported fields
}

type Note

type Note struct {
	model.Note
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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