12345678910111213141516171819 |
- package api
- const (
- _normalVip = 1
- _annualVip = 2
- _statusAvailable = 1
- _statusFrozen = 2
- )
- func (v *VipInfo) IsValid() bool {
- return v.Status == _statusAvailable && (v.Type == _normalVip || v.Type == _annualVip)
- }
- func (v *VipInfo) IsFrozen() bool {
- return v.Status == _statusFrozen
- }
|