feat: update phone validation
This commit is contained in:
@@ -698,7 +698,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/auth/{phone}": {
|
||||
"/v1/auth/phone": {
|
||||
"post": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
@@ -710,21 +710,24 @@ const docTemplate = `{
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "成功",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/requests.Pager"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/http.PostItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/auth/validate": {
|
||||
"post": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Auth"
|
||||
],
|
||||
"summary": "手机验证",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "成功",
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1379,10 +1382,7 @@ const docTemplate = `{
|
||||
"type": "integer"
|
||||
},
|
||||
"metas": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"$ref": "#/definitions/types.JSONType-fields_MediaMetas"
|
||||
},
|
||||
"mime_type": {
|
||||
"type": "string"
|
||||
@@ -1589,6 +1589,9 @@ const docTemplate = `{
|
||||
"types.JSONType-array_string": {
|
||||
"type": "object"
|
||||
},
|
||||
"types.JSONType-fields_MediaMetas": {
|
||||
"type": "object"
|
||||
},
|
||||
"types.JSONType-fields_OrderMeta": {
|
||||
"type": "object"
|
||||
},
|
||||
|
||||
@@ -692,7 +692,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/auth/{phone}": {
|
||||
"/v1/auth/phone": {
|
||||
"post": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
@@ -704,21 +704,24 @@
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "成功",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/requests.Pager"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/http.PostItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/auth/validate": {
|
||||
"post": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Auth"
|
||||
],
|
||||
"summary": "手机验证",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "成功",
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1373,10 +1376,7 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"metas": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"$ref": "#/definitions/types.JSONType-fields_MediaMetas"
|
||||
},
|
||||
"mime_type": {
|
||||
"type": "string"
|
||||
@@ -1583,6 +1583,9 @@
|
||||
"types.JSONType-array_string": {
|
||||
"type": "object"
|
||||
},
|
||||
"types.JSONType-fields_MediaMetas": {
|
||||
"type": "object"
|
||||
},
|
||||
"types.JSONType-fields_OrderMeta": {
|
||||
"type": "object"
|
||||
},
|
||||
|
||||
@@ -229,9 +229,7 @@ definitions:
|
||||
id:
|
||||
type: integer
|
||||
metas:
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
$ref: '#/definitions/types.JSONType-fields_MediaMetas'
|
||||
mime_type:
|
||||
type: string
|
||||
name:
|
||||
@@ -367,6 +365,8 @@ definitions:
|
||||
type: object
|
||||
types.JSONType-array_string:
|
||||
type: object
|
||||
types.JSONType-fields_MediaMetas:
|
||||
type: object
|
||||
types.JSONType-fields_OrderMeta:
|
||||
type: object
|
||||
types.JSONType-fields_UserAuthToken:
|
||||
@@ -830,20 +830,25 @@ paths:
|
||||
summary: 调整用户余额
|
||||
tags:
|
||||
- Admin Users
|
||||
/v1/auth/{phone}:
|
||||
/v1/auth/phone:
|
||||
post:
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 成功
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/requests.Pager'
|
||||
- properties:
|
||||
items:
|
||||
$ref: '#/definitions/http.PostItem'
|
||||
type: object
|
||||
schema: {}
|
||||
summary: 手机验证
|
||||
tags:
|
||||
- Auth
|
||||
/v1/auth/validate:
|
||||
post:
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 成功
|
||||
schema: {}
|
||||
summary: 手机验证
|
||||
tags:
|
||||
- Auth
|
||||
|
||||
Reference in New Issue
Block a user