feat: update phone validation

This commit is contained in:
2025-12-20 11:52:08 +08:00
parent 0e4af79b53
commit 22e288bf98
6 changed files with 100 additions and 56 deletions

View File

@@ -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