feat(upload): 支持阿里云 OSS 直传凭证 + 营销图管理后台静态路由

- 新增 internal/common/oss: OSS PostPolicy/UploadHost,CDN 为 aliyuncs 时返回 OSS 凭证
- upload_handler: QINIU_CDN_DOMAIN 为 OSS 域名时返回 oss_access_key_id/policy/signature,upload_url 为 bucket 域名
- routes: 增加 /admin/marketing 静态页面路由

Made-with: Cursor
This commit is contained in:
nepiedg
2026-03-06 11:25:23 +00:00
parent 76fd425ca7
commit e14255cf64
3 changed files with 129 additions and 3 deletions
+4
View File
@@ -79,6 +79,10 @@ func Register(
}
}
// Web 管理后台静态文件
router.StaticFile("/admin/marketing", "web/marketing/index.html")
router.StaticFile("/admin/marketing/", "web/marketing/index.html")
// 健康检查:用于容器/负载均衡探活
router.GET("/healthz", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"status": "ok"})