|
@ -1,8 +1,9 @@ |
|
|
package models |
|
|
package models |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"github.com/ouxuanserver/osmanthuswine/src/core" |
|
|
|
|
|
"time" |
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ouxuanserver/osmanthuswine/src/core" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
const LiveConfigTN = TableNamePrefix + "live_config" |
|
|
const LiveConfigTN = TableNamePrefix + "live_config" |
|
@ -61,7 +62,7 @@ func (t *LiveConfig) Like(aid interface{}) (int64, error) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (t *LiveConfig) HaveModule(module string) bool { |
|
|
func (t *LiveConfig) HaveModule(module string) bool { |
|
|
exist, _ := core.GetXormAuto().Where("is_delete=0 and name=?", module).In("id", t.AdaptationFunc).Exist(&ModuleService{}) |
|
|
|
|
|
|
|
|
exist, _ := core.GetXormAuto().Where("is_delete=0 and name=?", module).In("id", t.AdaptationFunc).Exist(&ModuleServiceHistory{}) |
|
|
return exist |
|
|
return exist |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|