feat(M5): 前端完善 + 部署 — Vue3 全量页面、仪表盘统计与我的审计接口、systemd/sudoers/迁移脚本、部署文档
This commit is contained in:
@@ -63,6 +63,7 @@ func New(cfg *config.Config, h *api.Handler, sessions auth.SessionStore, log *sl
|
||||
me.POST("/keys", h.Key.Create)
|
||||
me.PATCH("/keys/:id", h.Key.Rename)
|
||||
me.DELETE("/keys/:id", h.Key.Revoke)
|
||||
me.GET("/audit", h.Audit.MyAudit) // 我的审计痕迹(个人中心)
|
||||
}
|
||||
|
||||
// 申请审批(M3):提交公开;列表与审批需管理员会话
|
||||
@@ -86,6 +87,12 @@ func New(cfg *config.Config, h *api.Handler, sessions auth.SessionStore, log *sl
|
||||
settings.GET("", h.Settings.List)
|
||||
settings.PUT("", h.Settings.Update)
|
||||
}
|
||||
|
||||
// 仪表盘统计(admin):用户状态分布 / 近期待过期 / 待审批数
|
||||
adminGrp := v1.Group("/admin", sessionMiddleware(sessions), requireUserType(auth.SessionUserAdmin))
|
||||
{
|
||||
adminGrp.GET("/stats", h.Stats.Stats)
|
||||
}
|
||||
}
|
||||
|
||||
// 前端静态资源(go:embed;dev 阶段由 Vite dev server 代理,见 Makefile dev)
|
||||
|
||||
Reference in New Issue
Block a user