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

85 lines
1.7 KiB
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.
# UserAccountDailyStatService
> 用户账户统计服务
---
## listUserAccountDailyStats
> 列出按天统计
- 角色:`admin`
- HTTP`POST https://backend.dooki.cloud/UserAccountDailyStatService/listUserAccountDailyStats`
- RPC`rpc listUserAccountDailyStats(ListUserAccountDailyStatsRequest) returns (ListUserAccountDailyStatsResponse);`
**请求对象 (`ListUserAccountDailyStatsRequest`)**
```json
{
"dayFrom": "string",
"dayTo": "string"
}
```
**响应对象 (`ListUserAccountDailyStatsResponse`)**
```json
{
"stats": "[]Stat",
"day": "string // YYYYMMDD",
"income": "float",
"expense": "float"
}
```
**调用示例**
```bash
curl -X POST "https://backend.dooki.cloud/UserAccountDailyStatService/listUserAccountDailyStats" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
```
---
## listUserAccountMonthlyStats
> 列出按月统计
- 角色:`admin`
- HTTP`POST https://backend.dooki.cloud/UserAccountDailyStatService/listUserAccountMonthlyStats`
- RPC`rpc listUserAccountMonthlyStats(ListUserAccountMonthlyStatsRequest) returns (ListUserAccountMonthlyStatsResponse);`
**请求对象 (`ListUserAccountMonthlyStatsRequest`)**
```json
{
"dayFrom": "string",
"dayTo": "string"
}
```
**响应对象 (`ListUserAccountMonthlyStatsResponse`)**
```json
{
"stats": "[]Stat",
"month": "string // YYYYMM",
"income": "float",
"expense": "float"
}
```
**调用示例**
```bash
curl -X POST "https://backend.dooki.cloud/UserAccountDailyStatService/listUserAccountMonthlyStats" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
```
---