feat:完善信息
This commit is contained in:
@ -4,7 +4,6 @@ import (
|
||||
"SciencesServer/app/common/model"
|
||||
"SciencesServer/serve/orm"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
type SysTenant struct {
|
||||
@ -38,7 +37,7 @@ type (
|
||||
|
||||
// IsInvalid 判断是否有效
|
||||
func (m *SysTenant) IsInvalid() bool {
|
||||
return m.Status == model.SysTenantStatusForDisable || m.Status == model.SysTenantStatusForExpired || m.Deadline.Before(time.Now())
|
||||
return false
|
||||
}
|
||||
|
||||
// Tenants 租户信息
|
||||
|
Reference in New Issue
Block a user