update backend

This commit is contained in:
toom1996
2026-09-20 01:06:13 +08:00
parent f7ae917603
commit b99dc3dca1
115 changed files with 24732 additions and 10842 deletions

View File

@ -42,7 +42,7 @@ func (h *AuthHandler) Me(c *gin.Context) {
// Login 账号登录,校验账号密码后签发 access + refresh 双令牌。
//
// POST /api/auth/login
// POST /api/v1/auth/login
// body: { account, password }
// 成功:200 { access_token, refresh_token, expires_in, user }
func (h *AuthHandler) Login(c *gin.Context) {
@ -67,7 +67,7 @@ func (h *AuthHandler) Login(c *gin.Context) {
// Refresh 用 refresh token 换取新的 access token。
//
// POST /api/auth/refresh
// POST /api/v1/auth/refresh
// body: { refresh_token }
// 成功:200 { access_token, expires_in }
func (h *AuthHandler) Refresh(c *gin.Context) {