Browse Source

更新登录API,移除未使用的代码;更新调试配置,修改数据库连接信息

caipin 3 months atrás
parent
commit
1e07f5edc1
3 changed files with 5 additions and 30 deletions
  1. 0 22
      web/api/login_api.go
  2. 5 5
      web/config-debug.yaml
  3. 0 3
      web/main.go

+ 0 - 22
web/api/login_api.go

@@ -97,25 +97,3 @@ func (c *LoginApi) GetProjectName() {
 		})
 	}
 }
-
-// func (c *LoginApi) Get() {
-// 	token := jwt.NewTokenWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{
-// 		// 根据需求,可以存一些必要的数据
-// 		"userName": "JabinGP",
-// 		"userId":   "1",
-// 		"admin":    true,
-
-// 		// 签发人
-// 		"iss": "iris",
-// 		// 签发时间
-// 		"iat": time.Now().Unix(),
-// 		// 设定过期时间,便于测试,设置1分钟过期
-// 		"exp": time.Now().Add(1 * time.Minute * time.Duration(1)).Unix(),
-// 	})
-
-// 	// 使用设置的秘钥,签名生成jwt字符串
-// 	tokenString, _ := token.SignedString([]byte(conf.SignSecret))
-
-// 	// 返回
-// 	c.Ctx.JSON(tokenString)
-// }

+ 5 - 5
web/config-debug.yaml

@@ -1,5 +1,5 @@
-host: "47.94.96.130"
-port: 5077
-user: "zh_calc"
-pwd: "zh@)!(3850calc"
-datebase: "construction_uat"
+host: "192.168.1.76"
+port: 3306
+user: "zh_dev"
+pwd: "zongheng2019"
+datebase: "construction"

+ 0 - 3
web/main.go

@@ -31,9 +31,6 @@ func newApp() *bootstrap.Bootstrapper {
 // @title 工程项目管理系统 API
 // @version 1.0
 // @description 工程项目管理系统-接口
-
-// @contact.name CP Support
-
 // @securityDefinitions.apikey ApiKeyAuth
 // @in header
 // @name X-CSRF-Token