Initial commit
This commit is contained in:
46
reference/goedge 文档/ServerClientBrowserMonthlyStatService.md
Normal file
46
reference/goedge 文档/ServerClientBrowserMonthlyStatService.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# ServerClientBrowserMonthlyStatService
|
||||
> 浏览器统计
|
||||
|
||||
---
|
||||
|
||||
## findTopServerClientBrowserMonthlyStats
|
||||
> 查找前N个浏览器
|
||||
|
||||
- 角色:`admin`, `user`
|
||||
- HTTP:`POST https://backend.dooki.cloud/ServerClientBrowserMonthlyStatService/findTopServerClientBrowserMonthlyStats`
|
||||
- RPC:`rpc findTopServerClientBrowserMonthlyStats (FindTopServerClientBrowserMonthlyStatsRequest) returns (FindTopServerClientBrowserMonthlyStatsResponse);`
|
||||
|
||||
**请求对象 (`FindTopServerClientBrowserMonthlyStatsRequest`)**
|
||||
|
||||
```json
|
||||
{
|
||||
"serverId": "int64 // 服务ID(网站ID)",
|
||||
"month": "string",
|
||||
"offset": "int64 // 读取位置",
|
||||
"size": "int64 // 数量,通常不能小于0"
|
||||
}
|
||||
```
|
||||
|
||||
**响应对象 (`FindTopServerClientBrowserMonthlyStatsResponse`)**
|
||||
|
||||
```json
|
||||
{
|
||||
"stats": "[]Stat",
|
||||
"clientBrowser": "ClientBrowser",
|
||||
"version": "string",
|
||||
"count": "int64 // 数量"
|
||||
}
|
||||
```
|
||||
|
||||
**调用示例**
|
||||
|
||||
```bash
|
||||
curl -X POST "https://backend.dooki.cloud/ServerClientBrowserMonthlyStatService/findTopServerClientBrowserMonthlyStats" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
|
||||
-d '{
|
||||
...
|
||||
}'
|
||||
```
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user