init: init refactor
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
package config
|
||||
|
||||
import "github.com/zeromicro/go-zero/zrpc"
|
||||
|
||||
type Config struct {
|
||||
zrpc.RpcServerConf
|
||||
DB struct {
|
||||
DataSource string
|
||||
}
|
||||
Cache []struct {
|
||||
Host string
|
||||
Pass string
|
||||
Type string
|
||||
}
|
||||
JwtAuth struct {
|
||||
AccessSecret string
|
||||
AccessExpire int64
|
||||
}
|
||||
WxMini struct {
|
||||
AppId string
|
||||
AppSecret string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user