添加代码生成中route和gorm的自动注入
This commit is contained in:
@@ -48,6 +48,9 @@ func MysqlTables(db *gorm.DB) {
|
||||
model.ExaSimpleUploader{},
|
||||
model.ExaCustomer{},
|
||||
model.SysOperationRecord{},
|
||||
|
||||
// Code generated by gin-vue-admin Begin; DO NOT EDIT.
|
||||
// Code generated by gin-vue-admin End; DO NOT EDIT.
|
||||
)
|
||||
if err != nil {
|
||||
global.GVA_LOG.Error("register table failed", zap.Any("err", err))
|
||||
|
||||
@@ -49,6 +49,9 @@ func Routers() *gin.Engine {
|
||||
router.InitSysDictionaryDetailRouter(PrivateGroup) // 字典详情管理
|
||||
router.InitFileUploadAndDownloadRouter(PrivateGroup) // 文件上传下载功能路由
|
||||
router.InitExcelRouter(PrivateGroup) // 表格导入导出
|
||||
|
||||
// Code generated by gin-vue-admin Begin; DO NOT EDIT.
|
||||
// Code generated by gin-vue-admin End; DO NOT EDIT.
|
||||
}
|
||||
global.GVA_LOG.Info("router register success")
|
||||
return Router
|
||||
|
||||
Reference in New Issue
Block a user