Feat: add login

This commit is contained in:
2025-12-07 12:15:48 +08:00
parent fb1c47b321
commit 2eb8a18c40
11 changed files with 265 additions and 7 deletions

View File

@@ -30,6 +30,11 @@ definitions:
loginUrl:
type: string
type: object
auth.postLoginInput:
properties:
token:
type: string
type: object
info:
contact: {}
license:
@@ -176,4 +181,18 @@ paths:
$ref: '#/definitions/auth.postGenLoginUrlOutput'
"400":
description: Bad Request
/auth/login:
post:
parameters:
- description: payload
in: body
name: payload
required: true
schema:
$ref: '#/definitions/auth.postLoginInput'
responses:
"302":
description: redirect to root page
schema:
type: string
swagger: "2.0"