From 963792355013e9e89904a67352312ab3d9acf7f6 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 02 十一月 2023 14:02:05 +0800
Subject: [PATCH] 优化重构

---
 config/config.go |   21 +++------------------
 1 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/config/config.go b/config/config.go
index f88c14b..601c71d 100644
--- a/config/config.go
+++ b/config/config.go
@@ -1,14 +1,9 @@
 package config
 
 type Server struct {
-	JWT     JWT     `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
-	Zap     Zap     `mapstructure:"zap" json:"zap" yaml:"zap"`
-	Redis   Redis   `mapstructure:"redis" json:"redis" yaml:"redis"`
-	Email   Email   `mapstructure:"email" json:"email" yaml:"email"`
-	System  System  `mapstructure:"system" json:"system" yaml:"system"`
-	Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
-	// auto
-	AutoCode Autocode `mapstructure:"autocode" json:"autocode" yaml:"autocode"`
+	//JWT     JWT     `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
+	Zap    Zap    `mapstructure:"zap" json:"zap" yaml:"zap"`
+	System System `mapstructure:"system" json:"system" yaml:"system"`
 	// gorm
 	Mysql  Mysql           `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
 	Mssql  Mssql           `mapstructure:"mssql" json:"mssql" yaml:"mssql"`
@@ -16,16 +11,6 @@
 	Oracle Oracle          `mapstructure:"oracle" json:"oracle" yaml:"oracle"`
 	Sqlite Sqlite          `mapstructure:"sqlite" json:"sqlite" yaml:"sqlite"`
 	DBList []SpecializedDB `mapstructure:"db-list" json:"db-list" yaml:"db-list"`
-	// oss
-	Local      Local      `mapstructure:"local" json:"local" yaml:"local"`
-	Qiniu      Qiniu      `mapstructure:"qiniu" json:"qiniu" yaml:"qiniu"`
-	AliyunOSS  AliyunOSS  `mapstructure:"aliyun-oss" json:"aliyun-oss" yaml:"aliyun-oss"`
-	HuaWeiObs  HuaWeiObs  `mapstructure:"hua-wei-obs" json:"hua-wei-obs" yaml:"hua-wei-obs"`
-	TencentCOS TencentCOS `mapstructure:"tencent-cos" json:"tencent-cos" yaml:"tencent-cos"`
-	AwsS3      AwsS3      `mapstructure:"aws-s3" json:"aws-s3" yaml:"aws-s3"`
-
-	Excel Excel `mapstructure:"excel" json:"excel" yaml:"excel"`
-	Timer Timer `mapstructure:"timer" json:"timer" yaml:"timer"`
 
 	// 璺ㄥ煙閰嶇疆
 	Cors CORS `mapstructure:"cors" json:"cors" yaml:"cors"`

--
Gitblit v1.8.0