- 新增许愿树页面(Canvas绘制、许愿条展示) - 新增许愿详情页面 - 新增许愿创建弹窗(免费/付费两种模式) - 新增网络请求封装 utils/request.js - 新增Go后端项目结构(Gin + Inertia.js) - 新增用户、订单、许愿数据模型 - 新增数据库迁移脚本 - 更新.gitignore补全忽略规则 - 更新.env.local配置(robot=2, 版本1.0.1) - 添加secrets目录说明文档
43 lines
780 B
Go
43 lines
780 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// AdminIndex 管理后台首页
|
|
func AdminIndex(c *gin.Context) {
|
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
|
"title": "管理后台",
|
|
})
|
|
}
|
|
|
|
// AdminUsers 用户管理
|
|
func AdminUsers(c *gin.Context) {
|
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
|
"title": "用户管理",
|
|
})
|
|
}
|
|
|
|
// AdminOrders 订单管理
|
|
func AdminOrders(c *gin.Context) {
|
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
|
"title": "订单管理",
|
|
})
|
|
}
|
|
|
|
// AdminWishes 许愿管理
|
|
func AdminWishes(c *gin.Context) {
|
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
|
"title": "许愿管理",
|
|
})
|
|
}
|
|
|
|
// AdminSettings 系统设置
|
|
func AdminSettings(c *gin.Context) {
|
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
|
"title": "系统设置",
|
|
})
|
|
}
|