发布界面优化
This commit is contained in:
@@ -47,6 +47,10 @@ type PublishOptionsDTO struct {
|
||||
SkinGroups []PublishOptionGroup `json:"skin_groups"`
|
||||
QuantityItems []PublishQuantityItem `json:"quantity_items"`
|
||||
ScreenshotSlots []PublishScreenshotSlot `json:"screenshot_slots"`
|
||||
BanRecordOptions []string `json:"ban_record_options"`
|
||||
BanEvidenceOptions []string `json:"ban_evidence_options"`
|
||||
PriceConfig PublishPriceConfig `json:"price_config"`
|
||||
RatioConfig PublishRatioConfig `json:"ratio_config"`
|
||||
}
|
||||
|
||||
type PublishOptionGroup struct {
|
||||
@@ -68,3 +72,39 @@ type PublishScreenshotSlot struct {
|
||||
Required bool `json:"required"`
|
||||
Hint string `json:"hint"`
|
||||
}
|
||||
|
||||
type PublishPriceConfig struct {
|
||||
DepositPlaceholder string `json:"deposit_placeholder"`
|
||||
PricePlaceholder string `json:"price_placeholder"`
|
||||
RatioDescription string `json:"ratio_description"`
|
||||
}
|
||||
|
||||
type PublishRatioConfig struct {
|
||||
InsuranceBaseRatios []PublishInsuranceBaseRatio `json:"insurance_base_ratios"`
|
||||
ConfigItems []PublishRatioConfigItem `json:"config_items"`
|
||||
CoinCorrections []PublishCoinCorrection `json:"coin_corrections"`
|
||||
RentRules []PublishRentRule `json:"rent_rules"`
|
||||
}
|
||||
|
||||
type PublishInsuranceBaseRatio struct {
|
||||
Insurance string `json:"insurance"`
|
||||
Ratio float64 `json:"ratio"`
|
||||
}
|
||||
|
||||
type PublishRatioConfigItem struct {
|
||||
Key string `json:"key"`
|
||||
Label string `json:"label"`
|
||||
Kind string `json:"kind"`
|
||||
GroupKey string `json:"group_key,omitempty"`
|
||||
MissingPenalty float64 `json:"missing_penalty"`
|
||||
}
|
||||
|
||||
type PublishCoinCorrection struct {
|
||||
ThresholdM float64 `json:"threshold_m"`
|
||||
Correction float64 `json:"correction"`
|
||||
}
|
||||
|
||||
type PublishRentRule struct {
|
||||
ThresholdM float64 `json:"threshold_m"`
|
||||
Days int `json:"days"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user