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

1.6 KiB
Raw Permalink Blame History

UserAccountLogService

用户账户日志服务


countUserAccountLogs

计算日志数量

  • 角色:admin, user
  • HTTPPOST https://backend.dooki.cloud/UserAccountLogService/countUserAccountLogs
  • RPCrpc 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
  • HTTPPOST https://backend.dooki.cloud/UserAccountLogService/listUserAccountLogs
  • RPCrpc 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 '{
    ...
  }'