mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
optimized(scheduler): reduce sql query of mysql (#15878)
This commit is contained in:
@@ -548,19 +548,19 @@ func (manager *SModelBaseManager) CustomizedTotalCount(ctx context.Context, user
|
||||
return ret.Count, nil, nil
|
||||
}
|
||||
|
||||
func (model *SModelBase) GetId() string {
|
||||
func (model SModelBase) GetId() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (model *SModelBase) Keyword() string {
|
||||
func (model SModelBase) Keyword() string {
|
||||
return model.GetModelManager().Keyword()
|
||||
}
|
||||
|
||||
func (model *SModelBase) KeywordPlural() string {
|
||||
func (model SModelBase) KeywordPlural() string {
|
||||
return model.GetModelManager().KeywordPlural()
|
||||
}
|
||||
|
||||
func (model *SModelBase) GetName() string {
|
||||
func (model SModelBase) GetName() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ func (model *SStandaloneAnonResourceBase) StandaloneModelManager() IStandaloneMo
|
||||
return model.GetModelManager().(IStandaloneModelManager)
|
||||
}
|
||||
|
||||
func (model *SStandaloneAnonResourceBase) GetId() string {
|
||||
func (model SStandaloneAnonResourceBase) GetId() string {
|
||||
return model.Id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user