update backend
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user