go-common/app/interface/main/mcn/model/mcnmodel/upcheck.go
2019-04-22 18:49:16 +08:00

15 lines
479 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package mcnmodel
import "go-common/app/interface/main/mcn/model"
//isUpBindable
// up主为未绑定已驳回已解除已申请的up主可被申请up主拒绝后可重复申请
// 审核中,已签约,已冻结不可被申请
func isUpBindable(state model.MCNUPState) bool {
switch state {
case model.MCNUPStateOnBlock, model.MCNUPStateOnCooling, model.MCNUPStateOnSign, model.MCNUPStateOnReview, model.MCNUPStateOnPreOpen:
return false
}
return true
}