controller

package
v0.0.0-...-e9647d8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartMetrics

func ChartMetrics(ctx iris.Context)

ChartMetrics 计算上传谱面的各项信息 @Version 2.2 @Summary 计算上传谱面的各项信息 @Description.markdown @Tags ChartMetrics @Accept json @Produce json @Param diffStr path string true "难度字符串,建议在[easy,normal,hard,expert,special]中选择择" @Param message body bestdoriChart.BestdoriV2Chart true "BestdoriV2谱面" @Success 200 {object} model.ChartMetrics "Description中所提及的各项信息" @Failure 400 {object} ErrorResponse "传入谱面/Param错误" @Failure 500 {object} ErrorResponse "服务器内部错误,包括找不到谱面等" @Router /v2/chart/metrics/custom/{diffStr} [post]

func ChartMetricsFromBandori

func ChartMetricsFromBandori(ctx iris.Context)

ChartMetricsFromBandori 计算Bandori谱面的各项信息 @Version 2.2 @Description.markdown @Summary 计算Bandori谱面的各项信息 @Tags ChartMetrics @Produce json @Param chartID path int true "谱面ID" @Param diffStr path string true "难度字符串,建议在[easy,normal,hard,expert,special]中选择" @Success 200 {object} model.ChartMetrics "Description中所提及的各项信息" @Failure 400 {object} ErrorResponse "传入Param错误" @Failure 500 {object} ErrorResponse "服务器内部错误,包括找不到谱面等" @Router /v2/chart/metrics/bandori/{chartID}/{diffStr} [get]

func ChartMetricsFromBestdori

func ChartMetricsFromBestdori(ctx iris.Context)

ChartMetricsFromBestdori 计算Bandori谱面的各项信息 @Version 2.2 @Description.markdown @Summary 计算Bestdori谱面的各项信息,谱面的难度将会根据Bestdori上谱面声称的难度进行选择 @Tags ChartMetrics @Produce json @Param chartID path int true "谱面ID" @Success 200 {object} model.ChartMetrics "Description中所提及的各项信息" @Failure 400 {object} ErrorResponse "传入Param错误" @Failure 500 {object} ErrorResponse "服务器内部错误,包括找不到谱面等" @Router /v2/chart/metrics/bestdori/{chartID} [get]

func GetVersion

func GetVersion(ctx iris.Context)

GetVersion 获得该API的版本 @version 2.2 @Description 根据内部信息得到API的版本 @Summary 获得API版本 @Tags Version @Produce plain @Success 200 {object} APIVersion "获得的API版本号" @Router /v2/version [get]

Types

type APIVersion

type APIVersion struct {
	Version string `json:"version"`
}

type ErrorResponse

type ErrorResponse struct {
	ErrorMsg string `json:"error"`
}

Jump to

Keyboard shortcuts

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