From 6a81525a3defa6dd47e32fabeff02c2206ac81bd Mon Sep 17 00:00:00 2001 From: Sage <1010309281@qq.com> Date: Wed, 2 Mar 2022 09:09:40 +0800 Subject: [PATCH 1/2] add auth config --- src/v1/config/auth.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/v1/config/auth.go diff --git a/src/v1/config/auth.go b/src/v1/config/auth.go new file mode 100644 index 0000000..ead75bf --- /dev/null +++ b/src/v1/config/auth.go @@ -0,0 +1,7 @@ +package config + +//授权登录相关 +type AuthConfig struct { + SecretKey string + AuthExpired int64 `yaml:"AuthExpired"` +} \ No newline at end of file -- Gitee From 0a1d77c00109fb14b082993b5be6e3d2dcec0e88 Mon Sep 17 00:00:00 2001 From: Sage <1010309281@qq.com> Date: Wed, 2 Mar 2022 09:11:17 +0800 Subject: [PATCH 2/2] format --- src/v1/config/auth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v1/config/auth.go b/src/v1/config/auth.go index ead75bf..4bda54c 100644 --- a/src/v1/config/auth.go +++ b/src/v1/config/auth.go @@ -2,6 +2,6 @@ package config //授权登录相关 type AuthConfig struct { - SecretKey string - AuthExpired int64 `yaml:"AuthExpired"` -} \ No newline at end of file + SecretKey string + AuthExpired int64 `yaml:"AuthExpired"` +} -- Gitee