Product covers need an anonymously reachable image URL, so images are stored locally per shopeeId and served under /uploads/images, with a backend page to upload, search, batch-delete and set the share base URL. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
32 lines
1.0 KiB
Go
32 lines
1.0 KiB
Go
package config
|
|
|
|
var ExtConfig Extend
|
|
|
|
type Extend struct {
|
|
AMap AMap `yaml:"demo" json:"demo"`
|
|
Huohanhan HuohanhanConfig `yaml:"huohanhan" json:"huohanhan"`
|
|
Redis RedisConfig `yaml:"redis" json:"redis"`
|
|
Image ImageConfig `yaml:"image" json:"image"`
|
|
}
|
|
type ImageConfig struct {
|
|
BaseURL string `yaml:"base_url" json:"base_url"`
|
|
StorageDir string `yaml:"storage_dir" json:"storage_dir"`
|
|
}
|
|
type RedisConfig struct {
|
|
Addr string `yaml:"addr" json:"addr"`
|
|
Password string `yaml:"password" json:"password"`
|
|
DB int `yaml:"db" json:"db"`
|
|
AuthTTLSeconds int `yaml:"auth_ttl_seconds" json:"auth_ttl_seconds"`
|
|
}
|
|
type AMap struct {
|
|
Key string `yaml:"key" json:"key"`
|
|
}
|
|
type HuohanhanConfig struct {
|
|
BaseURL string `yaml:"base_url" json:"base_url"`
|
|
Account string `yaml:"account" json:"account"`
|
|
Password string `yaml:"password" json:"password"`
|
|
OCRURL string `yaml:"ocr_url" json:"ocr_url"`
|
|
StateDB string `yaml:"state_db" json:"state_db"`
|
|
APIKey string `yaml:"api_key" json:"api_key"`
|
|
}
|