# 查看审计日志

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/audit-log:
    get:
      summary: 查看审计日志
      deprecated: false
      description: ''
      operationId: queryLog
      tags:
        - 审计日志
        - audit-log-controller
      parameters:
        - name: offset
          in: query
          description: ''
          required: true
          schema:
            type: integer
        - name: limit
          in: query
          description: ''
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryLogResponse'
          headers: {}
          x-apifox-name: OK
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
          x-apifox-name: Bad Request
      security:
        - bearer: []
      x-apifox-folder: 审计日志
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/3525375/apis/api-121737383-run
components:
  schemas:
    QueryLogResponse:
      required:
        - list
        - total
      type: object
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/AuditLog'
        total:
          type: integer
          format: int64
      x-apifox-orders:
        - list
        - total
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    AuditLog:
      required:
        - operator
        - ip
        - resource
        - action
        - status
        - msg
        - opTime
      type: object
      properties:
        operator:
          type: string
        ip:
          type: string
        resource:
          type: string
        action:
          type: string
        status:
          type: integer
          format: int32
        msg:
          type: string
        opTime:
          type: integer
          format: int64
      x-apifox-orders:
        - operator
        - ip
        - resource
        - action
        - status
        - msg
        - opTime
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    ErrorResponse:
      required:
        - code
        - msg
      type: object
      properties:
        code:
          type: string
        msg:
          type: string
      x-apifox-orders:
        - code
        - msg
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
security:
  - bearer: []

```
