Files
qitongxue-api/api/user/v1/app_config.go
2026-09-30 17:01:18 +08:00

20 lines
819 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package v1
import "github.com/gogf/gf/v2/frame/g"
// ============================================================================
// C 端应用配置契约(迭代-2026-09-30)
//
// 首页等界面级配置的轻量下发口。值来自 settings 表,key 对齐小程序端
// `config/features.ts` 的 FEATURE_ENTRIES key;未配置的 key 不出现在 map 中。
// ============================================================================
// AppConfigReq 应用配置(首页功能卡背景图等)
type AppConfigReq struct {
g.Meta `path:"/app/config" method:"get" tags:"app" summary:"应用配置"`
}
type AppConfigRes struct {
// FeatureCovers 首页便捷功能卡背景图:featureKey → 绝对 URL(后端按 site.base_url 拼好)
FeatureCovers map[string]string `json:"feature_covers"`
}