bilibili-backup/app/service/main/dapper-query/model/const.go
2019-04-22 02:59:20 +00:00

19 lines
353 B
Go

package model
// RankType
const (
MaxDurationRank = "max_duration"
MinDurationRank = "min_duration"
AvgDurationRank = "avg_duration"
ErrorsRank = "errors"
)
// VerifyRankType .
func VerifyRankType(rankType string) bool {
switch rankType {
case MaxDurationRank, MinDurationRank, AvgDurationRank, ErrorsRank:
return true
}
return false
}