You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
363 B
16 lines
363 B
package caiyunapp
|
|
|
|
// GetCarWashingDesc 洗车指数 https://docs.caiyunapp.com/docs/tables/lifeindex
|
|
func GetCarWashingDesc(carWashing float64) string {
|
|
if carWashing <= 1 {
|
|
return "适宜"
|
|
} else if carWashing <= 2 {
|
|
return "较适宜"
|
|
} else if carWashing <= 3 {
|
|
return "较不适宜"
|
|
} else if carWashing <= 4 {
|
|
return "不适应"
|
|
}
|
|
return ""
|
|
}
|