v51

latestSwagger 2.0MITraw.githubusercontent.com2026-08-01372130868.3 KB
认证管理

用户登录

用户登录接口,验证用户名密码并返回JWT token

post/auth/login

Request body

captchastring

图形验证码

captchaIdstring

图形验证码ID

loginType'username' | 'email' | 'telegram' | 'qq'

登录类型

passwordstring required

密码登录时必填

targetstring

验证码登录时的目标

userType'admin' | 'user'

用户类型

usernamestring required

用户名登录时必填

verifyCodestring

验证码登录时的验证码

Example request

{
  "password": "password",
  "username": "admin"
}

Response

登录成功

codeinteger
dataobject
messagestring
msgstring