1.6 KiB
1.6 KiB
UserAccountLogService
用户账户日志服务
countUserAccountLogs
计算日志数量
- 角色:
admin,user - HTTP:
POST https://backend.dooki.cloud/UserAccountLogService/countUserAccountLogs - RPC:
rpc countUserAccountLogs(CountUserAccountLogsRequest) returns (RPCCountResponse);
请求对象 (CountUserAccountLogsRequest)
{
"userAccountId": "int64",
"keyword": "string // 关键词",
"eventType": "string"
}
响应对象 (RPCCountResponse)
{
"count": "int64 // 数量"
}
调用示例
curl -X POST "https://backend.dooki.cloud/UserAccountLogService/countUserAccountLogs" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
listUserAccountLogs
列出单页日志
- 角色:
admin,user - HTTP:
POST https://backend.dooki.cloud/UserAccountLogService/listUserAccountLogs - RPC:
rpc listUserAccountLogs(ListUserAccountLogsRequest) returns (ListUserAccountLogsResponse);
请求对象 (ListUserAccountLogsRequest)
{
"userAccountId": "int64",
"keyword": "string // 关键词",
"eventType": "string",
"offset": "int64 // 读取位置",
"size": "int64 // 数量,通常不能小于0"
}
响应对象 (ListUserAccountLogsResponse)
{
"userAccountLogs": "[]UserAccountLog"
}
调用示例
curl -X POST "https://backend.dooki.cloud/UserAccountLogService/listUserAccountLogs" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'