upcheck.go 479 B

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