34 lines
631 B
Go
34 lines
631 B
Go
package constants
|
|
|
|
type ProfileFillingStep int
|
|
|
|
const (
|
|
MaxAge = 150
|
|
MinAge = 18
|
|
MinNameLen = 2
|
|
MinStringFromStepLen = 5
|
|
ScaleMinValue = 0
|
|
ScaleMaxValue = 10
|
|
)
|
|
|
|
const (
|
|
AboutPartnerStep ProfileFillingStep = 1
|
|
AboutMeStep ProfileFillingStep = 2
|
|
FinishStep ProfileFillingStep = 3
|
|
)
|
|
|
|
var profileFillingSteps = map[ProfileFillingStep]struct{}{
|
|
AboutPartnerStep: {},
|
|
AboutMeStep: {},
|
|
FinishStep: {},
|
|
}
|
|
|
|
func (t ProfileFillingStep) Valid() bool {
|
|
_, ok := profileFillingSteps[t]
|
|
return ok
|
|
}
|
|
|
|
func (t ProfileFillingStep) Int() int {
|
|
return int(t)
|
|
}
|