26 lines
437 B
Go
26 lines
437 B
Go
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
|
|
}
|
|
PlantRpc zrpc.RpcClientConf
|
|
UserRpc zrpc.RpcClientConf
|
|
FileRpc zrpc.RpcClientConf
|
|
DB struct {
|
|
DataSource string
|
|
}
|
|
// 百度 OCR 植物识别
|
|
BaiduOcr struct {
|
|
ApiKey string
|
|
SecretKey string
|
|
} `json:",optional"`
|
|
}
|