Skip to content

Commit

Permalink
remove autocode
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Mar 17, 2024
1 parent 7f0df0d commit 8c4c160
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 1,186 deletions.
99 changes: 0 additions & 99 deletions server/api/sys_auto_code.go

This file was deleted.

17 changes: 0 additions & 17 deletions server/config/auto_code.go

This file was deleted.

23 changes: 11 additions & 12 deletions server/config/config.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package config

type Server struct {
Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
Zap Zap `mapstructure:"zap" json:"zap" yaml:"zap"`
Email Email `mapstructure:"email" json:"email" yaml:"email"`
Casbin Casbin `mapstructure:"casbin" json:"casbin" yaml:"casbin"`
System System `mapstructure:"system" json:"system" yaml:"system"`
Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
AutoCode Autocode `mapstructure:"autoCode" json:"autoCode" yaml:"autoCode"`
Local Local `mapstructure:"local" json:"local" yaml:"local"`
Excel Excel `mapstructure:"excel" json:"excel" yaml:"excel"`
Search Search `mapstructure:"search" json:"search" yaml:"search"`
Wechat Wechat `mapstructure:"wechat" json:"wechat" yaml:"wechat"`
Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
Zap Zap `mapstructure:"zap" json:"zap" yaml:"zap"`
Email Email `mapstructure:"email" json:"email" yaml:"email"`
Casbin Casbin `mapstructure:"casbin" json:"casbin" yaml:"casbin"`
System System `mapstructure:"system" json:"system" yaml:"system"`
Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
Local Local `mapstructure:"local" json:"local" yaml:"local"`
Excel Excel `mapstructure:"excel" json:"excel" yaml:"excel"`
Search Search `mapstructure:"search" json:"search" yaml:"search"`
Wechat Wechat `mapstructure:"wechat" json:"wechat" yaml:"wechat"`
}

type Local struct {
Expand Down
7 changes: 2 additions & 5 deletions server/core/viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ package core
import (
"flag"
"fmt"
"github.com/fsnotify/fsnotify"
"github.com/madneal/gshark/config"
"github.com/madneal/gshark/global"
_ "github.com/madneal/gshark/packfile"
"os"
"path/filepath"

"github.com/fsnotify/fsnotify"
"github.com/spf13/viper"
"os"
)

func Viper(path ...string) *viper.Viper {
Expand Down Expand Up @@ -52,6 +50,5 @@ func Viper(path ...string) *viper.Viper {
if err := v.Unmarshal(&global.GVA_CONFIG); err != nil {
fmt.Println(err)
}
global.GVA_CONFIG.AutoCode.Root, _ = filepath.Abs("..")
return v
}
1 change: 0 additions & 1 deletion server/initialize/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func Routers() *gin.Engine {
router.InitMenuRouter(PrivateGroup) // 注册menu路由
router.InitSystemRouter(PrivateGroup) // system相关路由
router.InitCasbinRouter(PrivateGroup) // 权限相关路由
router.InitAutoCodeRouter(PrivateGroup) // 创建自动化代码
router.InitAuthorityRouter(PrivateGroup) // 注册角色路由
router.InitSysDictionaryRouter(PrivateGroup) // 字典管理
router.InitSysOperationRecordRouter(PrivateGroup) // 操作记录
Expand Down
16 changes: 0 additions & 16 deletions server/model/request/sys_autocode.go

This file was deleted.

29 changes: 0 additions & 29 deletions server/model/sys_auto_code.go

This file was deleted.

17 changes: 0 additions & 17 deletions server/router/sys_auto_code.go

This file was deleted.

Loading

0 comments on commit 8c4c160

Please sign in to comment.