config

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicConfig

func GetPublicConfig(c *gin.Context)

GetPublicConfig 获取公共配置 @Tags config @Accept json @Produce json @Success 200 {object} util.ResponseAny @Router /api/v1/config/public [get]

Types

type PublicConfigResponse

type PublicConfigResponse struct {
	DisputeTimeWindowHours   int             `json:"dispute_time_window_hours"`   // 争议时间窗口(小时)
	RedEnvelopeEnabled       bool            `json:"red_envelope_enabled"`        // 红包功能是否启用
	RedEnvelopeMaxAmount     decimal.Decimal `json:"red_envelope_max_amount"`     // 单个红包的最大积分上限
	RedEnvelopeDailyLimit    int             `json:"red_envelope_daily_limit"`    // 每日发红包的个数限制
	RedEnvelopeFeeRate       decimal.Decimal `json:"red_envelope_fee_rate"`       // 红包手续费率
	RedEnvelopeMaxRecipients int             `json:"red_envelope_max_recipients"` // 每个红包的最大可领取人数上限
	SettlementDelayDaysMin   int             `json:"settlement_delay_days_min"`   // 商户收款延迟到账最小天数
	SettlementDelayDaysMax   int             `json:"settlement_delay_days_max"`   // 商户收款延迟到账最大天数
}

PublicConfigResponse 公共配置响应

Jump to

Keyboard shortcuts

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