EffectiveEnabledAt 使用给定时间判断用户是否应被下发到节点。
(now time.Time)
| 219 | |
| 220 | // EffectiveEnabledAt 使用给定时间判断用户是否应被下发到节点。 |
| 221 | func (u User) EffectiveEnabledAt(now time.Time) bool { |
| 222 | return u.EffectiveStatusAt(now) == StatusActive |
| 223 | } |
| 224 | |
| 225 | // EffectiveEnabled 判断用户是否应被下发到节点(便捷方法,使用当前时间)。 |
| 226 | func (u User) EffectiveEnabled() bool { |
no test coverage detected