weather-api
  1. 用户端接口
weather-api
  • 用户端接口
    • index-用户登录
      POST
    • 报价-创建保障报价
      POST
    • 报价-接受报价
      POST
    • 订单-查询当前用户的订单分页列表
      GET
    • 订单-获取当前用户订单详情
      GET
    • 订单-检查订单是否可取消
      POST
    • 订单-取消订单发送验证码
      POST
    • 订单-取消订单
      POST
  1. 用户端接口

index-用户登录

POST
/app/login

请求参数

Body 参数application/json
phone
string 
Phone
必需
手机号
type
string 
Type
必需
登录方式password-密码登录,code-验证码登录
password
Password
可选
密码
Any of
captcha
Captcha
可选
验证码
Any of
示例
{
    "phone": "string",
    "type": "string",
    "password": "string",
    "captcha": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/app/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phone": "string",
    "type": "string",
    "password": "string",
    "captcha": "string"
}'

返回响应

🟢200成功
application/json
Successful Response
Body
code
integer 
Code
必需
message
string 
Message
必需
success
boolean 
Success
必需
data
object (LoginResp) 
必需
token
string 
Token
必需
访问令牌
user
object 
用户信息
必需
示例
{
    "code": 0,
    "message": "string",
    "success": true,
    "data": {
        "token": "string",
        "user": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "createdAt": "2019-08-24T14:15:22Z",
            "updatedAt": "2019-08-24T14:15:22Z",
            "userName": "string",
            "phone": "string",
            "email": "string",
            "is_test": false
        }
    }
}
🟠422参数错误
修改于 2025-07-04 14:18:14
下一页
报价-创建保障报价
Built with