# NSAccessLogService
> 访问日志相关服务

---

## findNSAccessLog
> 查找单个日志

- 角色：`admin`, `user`
- HTTP：`POST https://backend.dooki.cloud/NSAccessLogService/findNSAccessLog`
- RPC：`rpc findNSAccessLog (FindNSAccessLogRequest) returns (FindNSAccessLogResponse);`

**请求对象 (`FindNSAccessLogRequest`)**

```json
{
  "requestId": "string"
}
```

**响应对象 (`FindNSAccessLogResponse`)**

```json
{
  "nsAccessLog": "NSAccessLog"
}
```

**调用示例**

```bash
curl -X POST "https://backend.dooki.cloud/NSAccessLogService/findNSAccessLog" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'
```

---

## listNSAccessLogs
> 列出单页访问日志

- 角色：`admin`, `user`
- HTTP：`POST https://backend.dooki.cloud/NSAccessLogService/listNSAccessLogs`
- RPC：`rpc listNSAccessLogs (ListNSAccessLogsRequest) returns (ListNSAccessLogsResponse);`

**请求对象 (`ListNSAccessLogsRequest`)**

```json
{
  "requestId": "string // 上一页请求ID，可选",
  "nsClusterId": "int64 // 集群",
  "nsNodeId": "int64 // 节点ID",
  "nsDomainId": "int64 // 域名ID",
  "nsRecordId": "int64 // 记录ID",
  "size": "int64 // 单页条数",
  "day": "string // 日期，格式YYYYMMDD",
  "reverse": "bool // 是否反向查找，可选",
  "keyword": "string // 关键词",
  "recordType": "string // 记录类型"
}
```

**响应对象 (`ListNSAccessLogsResponse`)**

```json
{
  "nsAccessLogs": "[]NSAccessLog",
  "requestId": "string",
  "hasMore": "bool"
}
```

**调用示例**

```bash
curl -X POST "https://backend.dooki.cloud/NSAccessLogService/listNSAccessLogs" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'
```

---
