增加电竞手册

This commit is contained in:
yml2213
2026-07-29 10:36:44 +08:00
parent 00fa48722f
commit f4d33d19c0
11 changed files with 382 additions and 98 deletions
+7
View File
@@ -8,6 +8,7 @@ import (
// Config 应用配置。
type Config struct {
TimeAPIURL string `json:"timeApiUrl"`
Activity string `json:"activity"` // 当前活动 ID,见 internal/activity
TraceEnabled bool `json:"traceEnabled"`
TraceMaxBody int `json:"traceMaxBody"`
LogLevel string `json:"logLevel"` // debug / info / warn / error
@@ -17,6 +18,12 @@ type Config struct {
SeckillMode SeckillMode `json:"seckillMode"` // 抢购模式:0=标准, 1=激进
}
// ActivityInfo 活动概要,供前端下拉选择使用。
type ActivityInfo struct {
ID string `json:"id"`
DisplayName string `json:"displayName"`
}
// RetryStage 重试间隔阶段配置。
type RetryStage struct {
MaxElapsed int `json:"maxElapsed"` // 经过秒数上限