Files
erpgo/config/extend.go
T
QiuSWandClaude Opus 5 0ea7cde293
Build / build (push) Canceled after 0s
CodeQL / Analyze (go) (push) Canceled after 0s
build / Build (push) Canceled after 0s
GitHub Actions Mirror / mirror_to_gitee (push) Canceled after 0s
GitHub Actions Mirror / mirror_to_gitlab (push) Canceled after 0s
feat: add Shopee product image upload and admin management page
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>
2026-09-17 14:21:23 +08:00

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"`
}