Files
sunct 3c3bf53ae4 docs(website): 添加简记memo产品原型和UI设计规范文档
- 新增「简记memo」一体化小程序产品原型设计文档
- 新增简记memo完整版UI视觉设计规范和界面细节
- 添加IDEA项目配置文件.gitignore
- 创建404页面HTML文件,包含响应式布局和错误提示
- 添加关于页面HTML文件,展示品牌介绍和团队信息
- 实现AES加解密工具函数,支持请求体加密
- 添加用户协议页面基础框架
2026-07-31 14:12:32 +08:00

29 lines
997 B
Go

// routes/pages.go
// HTML页面路由
package routes
import (
"path/filepath"
"github.com/gin-gonic/gin"
)
// registerPageRoutes 注册HTML页面路由
func registerPageRoutes(r *gin.Engine) {
staticPath := getStaticPath()
htmlPath := filepath.Join(staticPath, "html")
// 公开页面(无需登录)- 普通头部
r.StaticFile("/", filepath.Join(htmlPath, "index.html"))
r.StaticFile("/login", filepath.Join(htmlPath, "login.html"))
r.StaticFile("/about", filepath.Join(htmlPath, "about.html"))
r.StaticFile("/agreement", filepath.Join(htmlPath, "agreement.html"))
r.StaticFile("/privacy", filepath.Join(htmlPath, "privacy.html"))
r.StaticFile("/growth-rules", filepath.Join(htmlPath, "growth-rules.html"))
// Web端页面路由(需登录)- 工作台头部
r.StaticFile("/web/calendar", filepath.Join(htmlPath, "calendar.html"))
r.StaticFile("/web/profile", filepath.Join(htmlPath, "profile.html"))
r.StaticFile("/web/growth", filepath.Join(htmlPath, "growth.html"))
}