f
This commit is contained in:
@@ -18,6 +18,7 @@ type Config struct {
|
||||
Applepay ApplepayConfig
|
||||
Ali AliConfig
|
||||
Tianyuanapi TianyuanapiConfig
|
||||
Tianxingjuhe TianxingjuheConfig
|
||||
SystemConfig SystemConfig
|
||||
WechatH5 WechatH5Config
|
||||
Authorization AuthorizationConfig // 授权书配置
|
||||
@@ -150,6 +151,13 @@ type AuthorizationConfig struct {
|
||||
|
||||
// UploadConfig 图片上传(行驶证等)配置,临时存储,按 hash 去重
|
||||
type UploadConfig struct {
|
||||
FileBaseURL string `json:",optional"` // 上传文件访问基础 URL,如 https://xxx/api/v1/upload/file
|
||||
TempFileMaxAgeH int `json:",optional"` // 临时文件保留时长(小时),超时删除,0 表示默认 24 小时
|
||||
FileBaseURL string `json:"fileBaseURL,omitempty"` // 上传文件访问基础 URL,如 https://xxx/api/v1/upload/file
|
||||
TempFileMaxAgeH int `json:"tempFileMaxAgeH,omitempty"` // 临时文件保留时长(小时),超时删除,0 表示默认 24 小时
|
||||
}
|
||||
|
||||
// TianxingjuheConfig 天行聚合API配置
|
||||
type TianxingjuheConfig struct {
|
||||
URL string // API基础URL
|
||||
Key string // API密钥
|
||||
Timeout int // 超时时间(秒),默认30秒
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user