internal

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartInfoVo

type ChartInfoVo struct {
	Title    string
	SubTitle string
	Artist   string
	Sha256   string `json:"sha256"`
	Md5      string `json:"md5"`
}

type ImportCourseVo

type ImportCourseVo struct {
	Name       string        `json:"name"`
	Md5        []string      `json:"md5"`
	Sha256     []string      `json:"sha256"`
	Constraint []string      `json:"constraint"`
	Charts     []ChartInfoVo `json:"charts"`
	HeaderID   uint
}

type ImportHeaderVo

type ImportHeaderVo struct {
	DataURL     string `json:"data_url"`
	Name        string `json:"name"`
	OriginalURL string `json:"original_url"`
	Symbol      string `json:"symbol"`
	HeaderURL   string
	LevelOrders []any `json:"level_order"`
	RawCourses  []any `json:"course"`
	Courses     []ImportCourseVo
}

func (*ImportHeaderVo) ParseRawCourses

func (header *ImportHeaderVo) ParseRawCourses() error

Parse field 'RawCourses' into 'Courses'

Possible layouts:

  1. courses is an array of valid courses
  2. courses is a two-dimensional array, every element might be an array of valid courses
  3. courses is an array of a wrapped struct, the real courses are laid inside 'charts' field

For Item3, see pushupChartsHashField for details

Jump to

Keyboard shortcuts

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