fadd
This commit is contained in:
@@ -45,6 +45,7 @@ type Config struct {
|
||||
Shujubao ShujubaoConfig `mapstructure:"shujubao"`
|
||||
Nuoer NuoerConfig `mapstructure:"nuoer"`
|
||||
Huibo HuiboConfig `mapstructure:"huibo"`
|
||||
Rongxing RongxingConfig `mapstructure:"rongxing"`
|
||||
PDFGen PDFGenConfig `mapstructure:"pdfgen"`
|
||||
}
|
||||
|
||||
@@ -395,7 +396,7 @@ type FadadaConfig struct {
|
||||
AppSecret string `mapstructure:"app_secret"` // 应用密钥
|
||||
ServerURL string `mapstructure:"server_url"` // 服务器URL
|
||||
OpenCorpID string `mapstructure:"open_corp_id"` // 接入方(海宇)在法大大侧企业ID
|
||||
NoAuthSceneCode string `mapstructure:"no_auth_scene_code"` // 免验证签场景码(仅 freeSignType=business 时用;当前为 template 可留空)
|
||||
NoAuthSceneCode string `mapstructure:"no_auth_scene_code"` // 免验证签场景码(businessId;requestVerifyFree 时必传)
|
||||
TemplateID string `mapstructure:"template_id"` // 模板ID
|
||||
PartyAActorID string `mapstructure:"party_a_actor_id"` // 签署模板甲方参与方标识(actorId)
|
||||
PartyBActorID string `mapstructure:"party_b_actor_id"` // 签署模板乙方参与方标识(actorId)
|
||||
@@ -809,6 +810,36 @@ type HuiboLevelFileConfig struct {
|
||||
Compress bool `mapstructure:"compress"`
|
||||
}
|
||||
|
||||
// RongxingConfig 戎行(Info360)配置
|
||||
type RongxingConfig struct {
|
||||
URL string `mapstructure:"url"` // 基础地址,如 http://host:7007
|
||||
Account string `mapstructure:"account"` // 登录账号
|
||||
Password string `mapstructure:"password"` // 明文密码(请求时 Base64)
|
||||
AppID string `mapstructure:"app_id"` // 应用 ID
|
||||
PrivateKey string `mapstructure:"private_key"` // RSA 私钥(PEM 或 PKCS#8 Base64)
|
||||
Timeout time.Duration `mapstructure:"timeout"`
|
||||
|
||||
Logging RongxingLoggingConfig `mapstructure:"logging"`
|
||||
}
|
||||
|
||||
// RongxingLoggingConfig 戎行日志配置
|
||||
type RongxingLoggingConfig struct {
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
LogDir string `mapstructure:"log_dir"`
|
||||
ServiceName string `mapstructure:"service_name"`
|
||||
UseDaily bool `mapstructure:"use_daily"`
|
||||
EnableLevelSeparation bool `mapstructure:"enable_level_separation"`
|
||||
LevelConfigs map[string]RongxingLevelFileConfig `mapstructure:"level_configs"`
|
||||
}
|
||||
|
||||
// RongxingLevelFileConfig 戎行日志级别配置
|
||||
type RongxingLevelFileConfig struct {
|
||||
MaxSize int `mapstructure:"max_size"`
|
||||
MaxBackups int `mapstructure:"max_backups"`
|
||||
MaxAge int `mapstructure:"max_age"`
|
||||
Compress bool `mapstructure:"compress"`
|
||||
}
|
||||
|
||||
// PDFGenConfig PDF生成服务配置
|
||||
type PDFGenConfig struct {
|
||||
DevelopmentURL string `mapstructure:"development_url"` // 开发环境服务地址
|
||||
|
||||
Reference in New Issue
Block a user