mysql模块添加初始化函数

This commit is contained in:
learnmore2019
2019-02-13 17:37:09 +08:00
parent fc5ce025a3
commit 377add3208

View File

@@ -35,8 +35,8 @@ type DBResult struct {
}
//OnInit ...
func (slf *DBModule) Init() {
slf.Connect(100)
func (slf *DBModule) OnInit() error {
return slf.Connect(100)
}
// Next ...