feat:完善项目
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
package config
|
||||
|
||||
var (
|
||||
SettingInfo = new(Setting)
|
||||
RPCServerSettingInfo = new(RPCServerSetting)
|
||||
SettingAreaInfo = make(map[string]map[string]string, 0)
|
||||
SettingInfo = new(Setting)
|
||||
SettingAreaInfo = make(map[string]map[string]string, 0)
|
||||
)
|
||||
|
||||
// Mysql 配置
|
||||
@ -107,9 +106,3 @@ type Setting struct {
|
||||
Level string `yaml:"level"`
|
||||
}
|
||||
}
|
||||
|
||||
// RPCServerSetting 配置
|
||||
type RPCServerSetting struct {
|
||||
Key int `yaml:"key"`
|
||||
Servers map[string]*RPCServer `yaml:"servers"`
|
||||
}
|
||||
|
@ -14,12 +14,10 @@ const (
|
||||
const (
|
||||
TokenForUID string = "uid"
|
||||
TokenForSession string = "session"
|
||||
TokenForGrade string = "grade"
|
||||
)
|
||||
|
||||
const (
|
||||
APIRequestToken string = "x-token"
|
||||
APIRequestGrade string = "x-grade"
|
||||
)
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user