Documentation
¶
Index ¶
- Constants
- Variables
- func GetCompleteFormMap(season string) (map[string]CompleteForm, error)
- func HistoryMatchHandler(c iris.Context)
- func MatchIDHandler(c iris.Context)
- func MatchOrderHandler(c iris.Context)
- func MpMatchHandler(c iris.Context)
- func RMStaticHandler(c iris.Context)
- func RankListHandler(c iris.Context)
- func RedirectRouteHandlerFactory(param RedirectRouteHandlerParam) func(c iris.Context)
- func TeamInfoHandler(c iris.Context)
- type BilibiliOfficial
- type CompleteForm
- type CompleteFormRank
- type HistoryMatch
- type HistoryMatchList
- type HistoryMatchMap
- type HistorySeason
- type MpMatchData
- type MpMatchDstResp
- type MpMatchSrcResp
- type RankListItem
- type RankScoreItem
- type RedirectRouteHandlerParam
- type TeamInfo
Constants ¶
View Source
const ( MpMatchCacheRefreshTime = 10 * time.Second // 缓存即将过期时,异步刷新 MpMatchCacheExpiration = 60 * time.Second // 缓存过期时间 MpMatchDisabled = false // 是否禁用 )
View Source
const BilibiliOfficialKey = "bilibili_official"
View Source
const HistoryMatchKey = "history_match"
Variables ¶
View Source
var SeasonCompleteFormMap = map[string][]byte{ "2024": static.CompleteFormBytes2024, "2025": static.CompleteFormBytes2025, }
View Source
var SeasonCompleteFormRankMap = map[string][]byte{ "2024": {}, "2025": static.CompleteFormRankBytes2025, }
View Source
var SeasonRankScoreMap = map[string][]byte{ "2024": static.RankScoreBytes2024, "2025": static.RankScoreBytes2025, }
Functions ¶
func GetCompleteFormMap ¶
func GetCompleteFormMap(season string) (map[string]CompleteForm, error)
GetCompleteFormMap 获取完整形态
func HistoryMatchHandler ¶
func MatchIDHandler ¶
func MatchOrderHandler ¶
func MpMatchHandler ¶
func RMStaticHandler ¶
func RankListHandler ¶
func RedirectRouteHandlerFactory ¶
func RedirectRouteHandlerFactory(param RedirectRouteHandlerParam) func(c iris.Context)
RedirectRouteHandlerFactory 处理重定向路由的工厂函数
func TeamInfoHandler ¶
Types ¶
type BilibiliOfficial ¶
type CompleteForm ¶
type CompleteForm struct {
Rank int `json:"rank"`
School string `json:"school"`
Team string `json:"team"`
Score int `json:"score"`
InitialCoinDocument int `json:"initialCoinDocument"`
LevelDocument string `json:"levelDocument"`
InitialCoinTechnology int `json:"initialCoinTechnology"`
LevelTechnology string `json:"levelTechnology"`
InitialCoinTotal int `json:"initialCoinTotal"`
}
type CompleteFormRank ¶
type HistoryMatch ¶
type HistoryMatch struct {
BlueCollegeName string `json:"blueCollegeName"`
BlueSideWinGameCount int64 `json:"blueSideWinGameCount"`
BlueTeamName string `json:"blueTeamName"`
Group string `json:"group"`
Order int64 `json:"order"`
OrderNumber int64 `json:"orderNumber"`
RedCollegeName string `json:"redCollegeName"`
RedSideWinGameCount int64 `json:"redSideWinGameCount"`
RedTeamName string `json:"redTeamName"`
Season int64 `json:"season"`
Zone string `json:"zone"`
}
type HistoryMatchList ¶
type HistoryMatchList []HistoryMatch
type HistoryMatchMap ¶
type HistoryMatchMap map[string]HistorySeason
type HistorySeason ¶
type HistorySeason struct {
Season string `json:"season"`
Matches []HistoryMatch `json:"matches"`
}
type MpMatchData ¶
type MpMatchDstResp ¶
type MpMatchDstResp struct {
List []MpMatchData `json:"list"`
}
type MpMatchSrcResp ¶
type RankListItem ¶
type RankListItem struct {
RankScoreItem RankScoreItem `json:"rankScoreItem"`
CompleteForm CompleteForm `json:"completeForm"`
}
type RankScoreItem ¶
Click to show internal directories.
Click to hide internal directories.