You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
791 B
34 lines
791 B
package echomeet
|
|
|
|
import (
|
|
"yunyan/modules"
|
|
|
|
"yunyan/lego/utils/mapstructure"
|
|
)
|
|
|
|
type (
|
|
IOptions interface {
|
|
modules.IOptions
|
|
}
|
|
|
|
// Options echomeet 模块配置。
|
|
//
|
|
// 第三方服务(识别/翻译/总结)不再走 yaml:全部由后台「会议记录服务」编排
|
|
// (console 共享库 echomeet_orch + 服务池 svc_config)配置,运行时直读 + NATS 热重载。
|
|
// 部署身份与解密密钥由 .env 注入:APP_NAME / APP_REGION / FIELD_ENCRYPT_KEY。
|
|
Options struct {
|
|
modules.Options
|
|
}
|
|
)
|
|
|
|
func (this *Options) LoadConfig(settings map[string]interface{}) (err error) {
|
|
if settings != nil {
|
|
if err = this.Options.LoadConfig(settings); err != nil {
|
|
return
|
|
}
|
|
if err = mapstructure.Decode(settings, this); err != nil {
|
|
return
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|