Files
sundynix-micro-be/app/plant/api/internal/config/config.go
T
2026-05-24 01:41:22 +08:00

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"`
}