feat: phone validate
This commit is contained in:
@@ -164,6 +164,13 @@ definitions:
|
||||
description: Valid is true if Time is not NULL
|
||||
type: boolean
|
||||
type: object
|
||||
http.PhoneValidationForm:
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
phone:
|
||||
type: string
|
||||
type: object
|
||||
http.PlayUrl:
|
||||
properties:
|
||||
url:
|
||||
@@ -832,6 +839,13 @@ paths:
|
||||
- Admin Users
|
||||
/v1/auth/phone:
|
||||
post:
|
||||
parameters:
|
||||
- description: 手机号
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/http.PhoneValidationForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -843,6 +857,13 @@ paths:
|
||||
- Auth
|
||||
/v1/auth/validate:
|
||||
post:
|
||||
parameters:
|
||||
- description: 请求体
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/http.PhoneValidationForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user