git-subtree-dir: server git-subtree-mainline:c4e617ada7git-subtree-split:e64421295f
13 lines
328 B
Go
13 lines
328 B
Go
package agent
|
|
|
|
// Score 总分(100 分制)
|
|
func Score(c *CandidateOutfit, ctx *ScoreContext) int {
|
|
return weatherScore(*c, *ctx) + occasionScore(*c, *ctx) + colorScore(*c) +
|
|
completenessScore(*c) + styleScore(*c, *ctx)
|
|
}
|
|
|
|
// IsPass 是否达到阈值
|
|
func IsPass(score, threshold int) bool {
|
|
return score >= threshold
|
|
}
|