first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/zeromicro/go-zero/gateway"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
gateway.GatewayConf
|
||||
Nacos NacosConf
|
||||
Response ResponseConf `json:",optional"`
|
||||
}
|
||||
|
||||
type NacosConf struct {
|
||||
Hosts []string
|
||||
NamespaceId string `json:",optional"`
|
||||
Group string `json:",optional"`
|
||||
RegisterIP string `json:",optional"`
|
||||
}
|
||||
|
||||
type ResponseConf struct {
|
||||
IsDebug bool `json:",default=true"`
|
||||
EncryptKey string `json:",optional"`
|
||||
}
|
||||
Reference in New Issue
Block a user