chore: move config key to package ctxkey

This commit is contained in:
JustSong 2024-04-21 18:55:25 +08:00
parent e30ebda0fe
commit 83517f687c
2 changed files with 13 additions and 13 deletions

View File

@ -1,13 +0,0 @@
package config
const (
KeyPrefix = "cfg_"
KeyAPIVersion = KeyPrefix + "api_version"
KeyLibraryID = KeyPrefix + "library_id"
KeyPlugin = KeyPrefix + "plugin"
KeySK = KeyPrefix + "sk"
KeyAK = KeyPrefix + "ak"
KeyRegion = KeyPrefix + "region"
KeyUserID = KeyPrefix + "user_id"
)

13
common/ctxkey/config.go Normal file
View File

@ -0,0 +1,13 @@
package ctxkey
const (
ConfigPrefix = "cfg_"
ConfigAPIVersion = ConfigPrefix + "api_version"
ConfigLibraryID = ConfigPrefix + "library_id"
ConfigPlugin = ConfigPrefix + "plugin"
ConfigSK = ConfigPrefix + "sk"
ConfigAK = ConfigPrefix + "ak"
ConfigRegion = ConfigPrefix + "region"
ConfigUserID = ConfigPrefix + "user_id"
)