This commit is contained in:
zhengchiliu
2026-09-15 00:53:04 +08:00
parent 32a0b87e9e
commit 112c5f8e46
42 changed files with 1121 additions and 304 deletions
+6 -5
View File
@@ -142,11 +142,12 @@ type UserDefaultQuotaSettingS struct {
// 金额为服务端固定值,前端不传金额,从根源杜绝刷额度;各类型金额使用指针以区分
// 「未配置/显式 0」,nil 或非正数表示不发放该类型激励。
type AdRewardSettingS struct {
Enable bool // 是否开启广告激励;关闭时接口返回「广告激励未开启」
Cos *int64 // 广告激励赠送的 Cos 上传额度(固定值)
AI *int64 // 广告激励赠送的 AI 推荐额度(固定值)
OutfitShare *int64 // 广告激励赠送的社区分享额度(固定值)
ClosetShare *int64 // 广告激励赠送的衣柜分享额度(固定值)
Enable bool // 是否开启广告激励;关闭时接口返回「广告激励未开启」
Cos *int64 // 广告激励赠送的 Cos 上传额度(固定值)
AI *int64 // 广告激励赠送的 AI 推荐额度(固定值)
OutfitShare *int64 // 广告激励赠送的社区分享额度(固定值)
ClosetShare *int64 // 广告激励赠送的衣柜分享额度(固定值)
MaxClaimsPerDay int // 单用户、单类型每天最多领取次数;未配置默认 1
}
func (s *Setting) ReadSection(k string, v any) error {