增加电竞手册
This commit is contained in:
@@ -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"` // 经过秒数上限
|
||||
|
||||
Reference in New Issue
Block a user