You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
3.7 KiB

4 weeks ago
definitions:
4 weeks ago
dapi.ResponseCommon:
properties:
code:
description: 返回Code 200 成功 其他是失败
type: integer
count:
description: 条数
type: integer
message:
description: 返回信息
type: object
login.SsoLoginParams:
properties:
mobile:
description: 登陆手机号
type: string
passWord:
description: 密码
type: string
type: object
4 weeks ago
login.SsoLoginResponse:
properties:
code:
description: 返回Code 200 成功 其他是失败
type: integer
count:
description: 条数
type: integer
data:
description: 数据列表
properties:
token:
description: 返回token
type: string
type: object
message:
description: 返回信息
type: object
4 weeks ago
login.SsoRegisterParams:
properties:
captcha:
description: 验证码
type: string
email:
description: 邮箱(可选)
type: string
invite:
description: 邀请码(可选)
type: string
mobile:
description: 手机号
type: string
password:
description: 密码
type: string
type: object
login.SsoRegisterResponse:
properties:
code:
description: 返回Code 200 成功 其他是失败
type: integer
count:
description: 条数
type: integer
data:
properties:
token:
type: string
type: object
message:
description: 返回信息
type: object
login.SsoSendSmsCodeParams:
properties:
mobile:
type: string
type: object
4 weeks ago
info:
contact: {}
paths:
4 weeks ago
/api/v1/login/captcha:
4 weeks ago
post:
consumes:
- application/json
4 weeks ago
description: 该接口用于发送短信验证码,限制验证码的发送频率和每天发送的次数。
4 weeks ago
parameters:
4 weeks ago
- description: 发送短信验证码的请求参数
in: body
name: body
4 weeks ago
required: true
4 weeks ago
schema:
$ref: '#/definitions/login.SsoSendSmsCodeParams'
produces:
- application/json
responses:
"200":
description: 短信验证码发送成功
schema:
$ref: '#/definitions/dapi.ResponseCommon'
summary: 发送短信验证码
tags:
- sms
/api/v1/login/login:
post:
consumes:
- application/json
description: 该接口用于用户通过手机号和密码进行登录。如果登录失败,系统会记录错误信息并限制登录次数。
parameters:
- description: 用户登录信息
in: body
name: body
4 weeks ago
required: true
4 weeks ago
schema:
$ref: '#/definitions/login.SsoLoginParams'
4 weeks ago
produces:
- application/json
responses:
"200":
description: 登录成功返回Token
schema:
$ref: '#/definitions/login.SsoLoginResponse'
summary: 用户登录
tags:
- login
4 weeks ago
/api/v1/login/register:
post:
consumes:
- application/json
description: 该接口用于用户通过手机号、密码、验证码等信息进行注册。如果注册成功返回用户的Token。
parameters:
- description: 用户注册信息
in: body
name: body
required: true
schema:
$ref: '#/definitions/login.SsoRegisterParams'
produces:
- application/json
responses:
"200":
description: 注册成功返回Token
schema:
$ref: '#/definitions/login.SsoRegisterResponse'
summary: 用户注册
tags:
- register
4 weeks ago
swagger: "2.0"