go_dreamfactory/modules/worldtask/model_worldtask.go
2022-11-08 10:59:36 +08:00

20 lines
486 B
Go

package worldtask
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
type ModelWorldtask struct {
modules.MCompModel
moduleWorldtask *Worldtask
}
func (this *ModelWorldtask) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompModel.Init(service, module, comp, options)
this.TableName = comm.TableWorldtask
this.moduleWorldtask = module.(*Worldtask)
return
}