WMS_MAIN/methods/gateway.json

54 lines
2.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"module": "gateway",
"description": "内部网关接口,供内网系统间调用,统一使用 POST 请求",
"version": "0.1.0",
"updatedAt": "2026-03-24",
"headers": [],
"methods": {
"groups": [
{
"groupName": "用户模块",
"module": "user",
"list": [
{
"method": "user.getUserByTempCode",
"description": "根据绑定码反查WMS账号ID(供 ye4s 扫码绑定调用)",
"isNeedAuth": false,
"isNeedLogin": false,
"headers": [],
"params": [
{
"name": "code",
"type": "string",
"required": true,
"source": "body",
"description": "绑定码(由 user.getBindWechatCode 生成)"
}
],
"response": [
{
"name": "account_id",
"type": "number",
"required": true,
"description": "匹配到的 WMS 账号ID"
},
{
"name": "status",
"type": "string",
"required": true,
"description": "当前绑定状态,如 pending/bound"
},
{
"name": "source",
"type": "string",
"required": true,
"description": "数据来源,如 cache/db"
}
],
"errors": []
}
]
}
]
}
}