提交
This commit is contained in:
21
modules/dict/dict.go
Normal file
21
modules/dict/dict.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package dict
|
||||
|
||||
import (
|
||||
"github.com/cool-team-official/cool-admin-go/cool"
|
||||
_ "github.com/cool-team-official/cool-admin-go/modules/dict/packed"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
|
||||
_ "github.com/cool-team-official/cool-admin-go/modules/dict/controller"
|
||||
"github.com/cool-team-official/cool-admin-go/modules/dict/model"
|
||||
)
|
||||
|
||||
func init() {
|
||||
var (
|
||||
ctx = gctx.GetInitCtx()
|
||||
)
|
||||
g.Log().Debug(ctx, "module dict init start ...")
|
||||
cool.FillInitData(ctx, "dict", &model.DictInfo{})
|
||||
cool.FillInitData(ctx, "dict", &model.DictType{})
|
||||
g.Log().Debug(ctx, "module dict init finished ...")
|
||||
}
|
||||
Reference in New Issue
Block a user