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"`
	Ai struct {
		ChatApiUrl         string `json:",optional"`
		ChatApiKey         string `json:",optional"`
		ChatModelName      string `json:",optional"`
		EmbeddingApiUrl    string `json:",optional"`
		EmbeddingApiKey    string `json:",optional"`
		EmbeddingModelName string `json:",optional"`
		QdrantUrl          string `json:",optional"`
		QdrantApiKey       string `json:",optional"`
		QdrantCollection   string `json:",optional"`
		VectorDimension    int    `json:",optional"`
		DailyQuota         int64  `json:",optional"`
	} `json:",optional"`
}
