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.
 
 
 

26 lines
390 B

package point
func PointLevel(point int64) int32 {
if point <= 50 {
return 1
}
if point > 50 && point <= 200 {
return 2
}
if point > 200 && point <= 500 {
return 3
}
if point > 500 && point <= 1000 {
return 4
}
if point > 1000 && point <= 2500 {
return 5
}
if point > 2500 && point <= 5000 {
return 6
}
if point > 5000 && point <= 8000 {
return 7
}
return 8
}