git-subtree-dir: server git-subtree-mainline:c4e617ada7git-subtree-split:e64421295f
29 lines
868 B
Go
29 lines
868 B
Go
package agent
|
|
|
|
// NewItemBaseScore 推荐新品(用户衣橱不具备)的单品基础分,
|
|
// 无衣橱属性(颜色/风格)无法走规则评分,直接给固定分值并入方案总分
|
|
const NewItemBaseScore = 15
|
|
|
|
// WardrobeItem 评分用服装条目(从衣橱 entity 转换)
|
|
type WardrobeItem struct {
|
|
Category string // 上衣/下装/鞋/配饰
|
|
Season string // 春/夏/秋/冬/四季
|
|
ColorInfo string // 如 #RRGGBB
|
|
StyleTags string
|
|
}
|
|
|
|
// CandidateOutfit 候选组合
|
|
type CandidateOutfit struct {
|
|
Items []WardrobeItem
|
|
HasOuterwear bool
|
|
}
|
|
|
|
// ScoreContext 评分上下文
|
|
type ScoreContext struct {
|
|
TempAvg int // 日期范围平均温度℃
|
|
Season string // 春/夏/秋/冬
|
|
Occasion string // 通勤/约会/聚会/运动
|
|
Weekday string // workday/weekend/holiday
|
|
StyleTags []string // 用户偏好标签
|
|
}
|