✨ scan the QR code to log in on the WeChat public account
This commit is contained in:
@@ -1,53 +1,18 @@
|
||||
definitions:
|
||||
model.ScaAuthUser:
|
||||
dto.AccountLoginRequest:
|
||||
properties:
|
||||
avatar:
|
||||
description: 头像
|
||||
account:
|
||||
type: string
|
||||
blog:
|
||||
description: 博客
|
||||
password:
|
||||
type: string
|
||||
company:
|
||||
description: 公司
|
||||
type: string
|
||||
created_by:
|
||||
description: 创建人
|
||||
type: string
|
||||
created_time:
|
||||
description: 创建时间
|
||||
type: string
|
||||
email:
|
||||
description: 邮箱
|
||||
type: string
|
||||
gender:
|
||||
description: 性别
|
||||
type: string
|
||||
introduce:
|
||||
description: 介绍
|
||||
type: string
|
||||
location:
|
||||
description: 地址
|
||||
type: string
|
||||
nickname:
|
||||
description: 昵称
|
||||
type: object
|
||||
dto.AddUserRequest:
|
||||
properties:
|
||||
password:
|
||||
type: string
|
||||
phone:
|
||||
description: 电话
|
||||
type: string
|
||||
status:
|
||||
description: 状态 0 正常 1 封禁
|
||||
type: integer
|
||||
update_by:
|
||||
description: 更新人
|
||||
type: string
|
||||
update_time:
|
||||
description: 更新时间
|
||||
type: string
|
||||
username:
|
||||
description: 用户名
|
||||
type: string
|
||||
uuid:
|
||||
description: 唯一ID
|
||||
type: string
|
||||
type: object
|
||||
info:
|
||||
@@ -79,27 +44,6 @@ paths:
|
||||
summary: 删除用户
|
||||
tags:
|
||||
- 鉴权模块
|
||||
/api/auth/user/login:
|
||||
post:
|
||||
parameters:
|
||||
- description: 账号
|
||||
in: query
|
||||
name: account
|
||||
required: true
|
||||
type: string
|
||||
- description: 密码
|
||||
in: query
|
||||
name: password
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
type: string
|
||||
summary: 账号登录
|
||||
tags:
|
||||
- 鉴权模块
|
||||
/api/auth/user/query_by_phone:
|
||||
get:
|
||||
parameters:
|
||||
@@ -148,23 +92,6 @@ paths:
|
||||
summary: 根据uuid查询用户
|
||||
tags:
|
||||
- 鉴权模块
|
||||
/api/auth/user/register:
|
||||
post:
|
||||
parameters:
|
||||
- description: 用户信息
|
||||
in: body
|
||||
name: user
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/model.ScaAuthUser'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
type: string
|
||||
summary: 用户注册
|
||||
tags:
|
||||
- 鉴权模块
|
||||
/api/captcha/rotate/check:
|
||||
post:
|
||||
description: 验证旋转验证码
|
||||
@@ -319,7 +246,93 @@ paths:
|
||||
produces:
|
||||
- application/json
|
||||
responses: {}
|
||||
summary: 发送短信验证码
|
||||
summary: 短信宝发送短信验证码
|
||||
tags:
|
||||
- 短信验证码
|
||||
/api/sms/test/send:
|
||||
get:
|
||||
description: 发送测试短信验证码
|
||||
parameters:
|
||||
- description: 手机号
|
||||
in: query
|
||||
name: phone
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses: {}
|
||||
summary: 发送测试短信验证码
|
||||
tags:
|
||||
- 短信验证码
|
||||
/api/token/refresh:
|
||||
post:
|
||||
parameters:
|
||||
- description: 刷新token
|
||||
in: query
|
||||
name: refresh_token
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
type: string
|
||||
summary: 刷新token
|
||||
tags:
|
||||
- 鉴权模块
|
||||
/api/user/add:
|
||||
post:
|
||||
parameters:
|
||||
- description: 用户信息
|
||||
in: body
|
||||
name: user
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.AddUserRequest'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
type: string
|
||||
summary: 添加用户
|
||||
tags:
|
||||
- 鉴权模块
|
||||
/api/user/login:
|
||||
post:
|
||||
parameters:
|
||||
- description: 用户信息
|
||||
in: body
|
||||
name: user
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.AccountLoginRequest'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
type: string
|
||||
summary: 账号登录
|
||||
tags:
|
||||
- 鉴权模块
|
||||
/api/user/phone_login:
|
||||
post:
|
||||
parameters:
|
||||
- description: 手机号
|
||||
in: query
|
||||
name: phone
|
||||
required: true
|
||||
type: string
|
||||
- description: 验证码
|
||||
in: query
|
||||
name: captcha
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
type: string
|
||||
summary: 手机号登录/注册
|
||||
tags:
|
||||
- 鉴权模块
|
||||
swagger: "2.0"
|
||||
|
Reference in New Issue
Block a user