card

package
v0.6.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContestRanking added in v0.6.0

func ContestRanking(name string, data *models.UserContestRankingInfo, i18 i18n.ContestRanking) ([]byte, error)

func QuestionProcess added in v0.6.0

func QuestionProcess(name string, data *models.UserQuestionPrecess, i18 i18n.QuestionProcess) ([]byte, error)

Types

type ContestRankingInfo added in v0.6.0

type ContestRankingInfo struct {
	Name          string
	Rating        string
	LocalRanking  string
	GlobalRanking string

	LocalTotal  string
	GlobalTotal string

	Top string

	i18n.ContestRanking
}

type QuestionProcessInfo added in v0.6.0

type QuestionProcessInfo struct {
	Name string
	// 长度
	BaseLen   int
	EasyLen   int
	MediumLen int
	HardLen   int

	// 数量
	EasyNum     string
	EasyTotal   int
	MediumNum   string
	MediumTotal int
	HardNum     string
	HardTotal   int

	AcceptNum int

	i18n.QuestionProcess
}

Jump to

Keyboard shortcuts

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