40 lines
741 B
Go
40 lines
741 B
Go
// Code scaffolded by goctl. Safe to edit.
|
|
// goctl 1.10.1
|
|
|
|
package config
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/rest"
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
)
|
|
|
|
type Config struct {
|
|
rest.RestConf
|
|
Auth struct {
|
|
AccessSecret string
|
|
AccessExpire int64
|
|
}
|
|
DB struct {
|
|
DataSource string
|
|
}
|
|
Cache []struct {
|
|
Host string
|
|
Pass string
|
|
Type string
|
|
}
|
|
UserRpc zrpc.RpcClientConf
|
|
FileRpc zrpc.RpcClientConf
|
|
BaiduImgClassify struct {
|
|
ApiKey string
|
|
SecretKey string
|
|
}
|
|
WechatPay struct {
|
|
MchId string
|
|
MchCertificateSerialNumber string
|
|
MchApiV3Key string
|
|
PrivateKeyPath string
|
|
PublicKeyPath string
|
|
NotifyUrl string
|
|
}
|
|
}
|