Files
pyGoEdge-UserPanel/reference/goedge 文档/NodeLoginService.md
2025-11-18 03:36:49 +08:00

42 lines
769 B
Markdown
Raw Permalink 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.
# NodeLoginService
> 节点登录相关
---
## findNodeLoginSuggestPorts
> 读取建议的端口
- 角色:`admin`
- HTTP`POST https://backend.dooki.cloud/NodeLoginService/findNodeLoginSuggestPorts`
- RPC`rpc findNodeLoginSuggestPorts(FindNodeLoginSuggestPortsRequest) returns (FindNodeLoginSuggestPortsResponse);`
**请求对象 (`FindNodeLoginSuggestPortsRequest`)**
```json
{
"host": "string"
}
```
**响应对象 (`FindNodeLoginSuggestPortsResponse`)**
```json
{
"ports": "[]int32",
"availablePorts": "[]int32"
}
```
**调用示例**
```bash
curl -X POST "https://backend.dooki.cloud/NodeLoginService/findNodeLoginSuggestPorts" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
```
---