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.
19 lines
942 B
19 lines
942 B
package console
|
|
|
|
// 第三方服务配置(svcconfig) 与 通话翻译规则(calltranslate) 的本地数据模型别名。
|
|
//
|
|
// yunyan-sas 的 pb 没有这些定义且禁止改 proto,故用 Go struct + gorm/json tag 定义,
|
|
// 并与 admin 前端(serviceconfig.vue / calltranslate.vue) 的 JSON 契约精确对齐。
|
|
//
|
|
// 结构本体都在 comm 包(业务服务运行时也要直读消费),console 侧只用 type alias 引用,包内代码零改动。
|
|
|
|
import "yunyan/comm"
|
|
|
|
// 第三方服务池:见 comm/svcpool.go。
|
|
type SvcField = comm.SvcField
|
|
type ThirdSvcConfig = comm.ThirdSvcConfig
|
|
type SvcRegionOverride = comm.SvcRegionOverride
|
|
|
|
// 通话翻译规则:见 comm/calltranslate.go(含运行时选路函数 comm.MatchCallTranslateRule)。
|
|
// 旧的 CallTranslatePair(区域×单语言对×直接拼 asr/mt/tts)已下线,表留在库里但代码不再读写。
|
|
type CallTranslateRule = comm.CallTranslateRule
|
|
|