-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add API interface authentication function (#7146)
- Loading branch information
1 parent
c2fd02a
commit 2859772
Showing
29 changed files
with
884 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
package configs | ||
|
||
type System struct { | ||
Port string `mapstructure:"port"` | ||
Ipv6 string `mapstructure:"ipv6"` | ||
BindAddress string `mapstructure:"bindAddress"` | ||
SSL string `mapstructure:"ssl"` | ||
DbFile string `mapstructure:"db_file"` | ||
DbPath string `mapstructure:"db_path"` | ||
LogPath string `mapstructure:"log_path"` | ||
DataDir string `mapstructure:"data_dir"` | ||
TmpDir string `mapstructure:"tmp_dir"` | ||
Cache string `mapstructure:"cache"` | ||
Backup string `mapstructure:"backup"` | ||
EncryptKey string `mapstructure:"encrypt_key"` | ||
BaseDir string `mapstructure:"base_dir"` | ||
Mode string `mapstructure:"mode"` | ||
RepoUrl string `mapstructure:"repo_url"` | ||
Version string `mapstructure:"version"` | ||
Username string `mapstructure:"username"` | ||
Password string `mapstructure:"password"` | ||
Entrance string `mapstructure:"entrance"` | ||
IsDemo bool `mapstructure:"is_demo"` | ||
AppRepo string `mapstructure:"app_repo"` | ||
ChangeUserInfo string `mapstructure:"change_user_info"` | ||
OneDriveID string `mapstructure:"one_drive_id"` | ||
OneDriveSc string `mapstructure:"one_drive_sc"` | ||
Port string `mapstructure:"port"` | ||
Ipv6 string `mapstructure:"ipv6"` | ||
BindAddress string `mapstructure:"bindAddress"` | ||
SSL string `mapstructure:"ssl"` | ||
DbFile string `mapstructure:"db_file"` | ||
DbPath string `mapstructure:"db_path"` | ||
LogPath string `mapstructure:"log_path"` | ||
DataDir string `mapstructure:"data_dir"` | ||
TmpDir string `mapstructure:"tmp_dir"` | ||
Cache string `mapstructure:"cache"` | ||
Backup string `mapstructure:"backup"` | ||
EncryptKey string `mapstructure:"encrypt_key"` | ||
BaseDir string `mapstructure:"base_dir"` | ||
Mode string `mapstructure:"mode"` | ||
RepoUrl string `mapstructure:"repo_url"` | ||
Version string `mapstructure:"version"` | ||
Username string `mapstructure:"username"` | ||
Password string `mapstructure:"password"` | ||
Entrance string `mapstructure:"entrance"` | ||
IsDemo bool `mapstructure:"is_demo"` | ||
AppRepo string `mapstructure:"app_repo"` | ||
ChangeUserInfo string `mapstructure:"change_user_info"` | ||
OneDriveID string `mapstructure:"one_drive_id"` | ||
OneDriveSc string `mapstructure:"one_drive_sc"` | ||
ApiInterfaceStatus string `mapstructure:"api_interface_status"` | ||
ApiKey string `mapstructure:"api_key"` | ||
IpWhiteList string `mapstructure:"ip_white_list"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.